mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-04 14:55:43 +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:
parent
2321aeeb52
commit
1c24fbf89b
2 changed files with 11 additions and 1 deletions
2
daemon
2
daemon
|
@ -1 +1 @@
|
|||
Subproject commit 977ee99c115f8435b0aa0521aa5b54ea7a2d4895
|
||||
Subproject commit c5bbd21e1c125f4012e2f88f485816a438ae62a7
|
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue