1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-07-01 14:15:24 +02:00

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
This commit is contained in:
pmagnier-slimani 2025-02-10 16:53:59 -05:00 committed by Page Magnier-Slimani
parent 15d62f0200
commit 71527afd76

View file

@ -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);