From ffcfaffc905c46c1c159644ee1d9130ce1be915f Mon Sep 17 00:00:00 2001 From: ovari123 Date: Mon, 3 Mar 2025 15:01:07 -0500 Subject: [PATCH] Conversation: add "You left the conversation." string Follow up to https://review.jami.net/c/jami-client-qt/+/30295 GitLab: #1932 Change-Id: Ic6e78bd3384c9b825a7fd3bc82409d3e6df2b721 --- src/libclient/api/interaction.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libclient/api/interaction.h b/src/libclient/api/interaction.h index 9294fa37..2d06aab3 100644 --- a/src/libclient/api/interaction.h +++ b/src/libclient/api/interaction.h @@ -288,6 +288,9 @@ getContactInteractionString(const QString& authorUri, const ContactAction& actio } return QObject::tr("%1 has joined the conversation.").arg(authorUri); case ContactAction::LEAVE: + if (authorUri.isEmpty()) { + return QObject::tr("You left the conversation."); + } return QObject::tr("%1 has left the conversation.").arg(authorUri); case ContactAction::BANNED: return QObject::tr("%1 was blocked from the conversation.").arg(authorUri);