1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-08-03 22:35:45 +02:00

conversationmodel: show correct timestamp for syncing conversations

Because no interactions was added, a conversation was shown at the
bottom while syncing

Change-Id: I9cdba00f7fe328e0cf6486d7076fc377fc573a32
This commit is contained in:
Sébastien Blin 2023-03-15 14:40:13 -04:00
parent 2321aeeb52
commit 1c24fbf89b
2 changed files with 11 additions and 1 deletions

2
daemon

@ -1 +1 @@
Subproject commit 977ee99c115f8435b0aa0521aa5b54ea7a2d4895
Subproject commit c5bbd21e1c125f4012e2f88f485816a438ae62a7

View file

@ -3256,6 +3256,16 @@ ConversationModelPimpl::addSwarmConversation(const QString& convId)
}
}
if (details["syncing"] == "true") {
MapStringString messageMap = {
{"type", "initial"},
{"author", otherMember},
{"timestamp", details["created"]},
{"linearizedParent", ""},
};
auto msg = interaction::Info(messageMap, linked.owner.profileInfo.uri);
insertSwarmInteraction(convId, msg, conversation, true);
conversation.lastMessageUid = convId;
conversation.needsSyncing = true;
Q_EMIT linked.conversationUpdated(conversation.uid);
Q_EMIT linked.dataChanged(indexOf(conversation.uid));