Skip to content
Snippets Groups Projects
Commit 27f1117e authored by Kateryna Kostiuk's avatar Kateryna Kostiuk Committed by Sébastien Blin
Browse files

conversation: fix updates for last message

Change-Id: I8f1e181a4ce0e9930ada1f35019ca03fbe65b8d0
parent cf040787
Branches
No related tags found
No related merge requests found
......@@ -1349,10 +1349,10 @@ ConversationModel::clearInteractionsCache(const QString& convId)
if (!conversation.isRequest && !conversation.needsSyncing && conversation.isSwarm()) {
{
std::lock_guard<std::mutex> lk(pimpl_->interactionsLocks[convId]);
conversation.interactions->clear(1);
conversation.interactions->clear();
}
ConfigurationManager::instance().loadConversationMessages(owner.id, convId, "", 1);
conversation.allMessagesLoaded = false;
conversation.lastMessageUid = conversation.interactions->last().first;
}
} catch (const std::out_of_range& e) {
qDebug() << "can't find interaction from conversation: " << e.what();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment