From 71527afd761145d015018fb7dae2b3a858c42e3f Mon Sep 17 00:00:00 2001 From: pmagnier-slimani <page.magnier-slimani@savoirfairelinux.com> Date: Mon, 10 Feb 2025 16:53:59 -0500 Subject: [PATCH] Conversation: Fix bug not displaying "You joined the conversation" Edited the getContactInteractionString function of the namespace interaction to display properly the message when joining a chat. Gitlab: #1889 Change-Id: Ic1d6780a4fe9b35c9ab8eeb8d9cec435b0321513 --- 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 7850c12a..0bc307e9 100644 --- a/src/libclient/api/interaction.h +++ b/src/libclient/api/interaction.h @@ -285,6 +285,9 @@ getContactInteractionString(const QString& authorUri, const ContactAction& actio } return QObject::tr("%1 was invited to join the conversation.").arg(authorUri); case ContactAction::JOIN: + if (authorUri.isEmpty()) { + return QObject::tr("You joined the conversation."); + } return QObject::tr("%1 joined the conversation.").arg(authorUri); case ContactAction::LEAVE: return QObject::tr("%1 left the conversation.").arg(authorUri); -- GitLab