Skip to content
Snippets Groups Projects
Commit 2d90396b authored by Andreas Traczyk's avatar Andreas Traczyk Committed by Hugo Lefeuvre
Browse files

conversationmodel: dirty conversations when removing interaction


Change-Id: I5e3f66be4aa559105f5b80acd0e422499d9aa2f6
Reviewed-by: default avatarHugo Lefeuvre <hugo.lefeuvre@savoirfairelinux.com>
parent caabdcd2
No related branches found
No related tags found
No related merge requests found
...@@ -748,8 +748,10 @@ ConversationModel::clearInteractionFromConversation(const std::string& convId, c ...@@ -748,8 +748,10 @@ ConversationModel::clearInteractionFromConversation(const std::string& convId, c
qDebug() << "can't clear interaction from conversation: " << e.what(); qDebug() << "can't clear interaction from conversation: " << e.what();
} }
} }
if (erased_keys > 0) if (erased_keys > 0) {
pimpl_->dirtyConversations.first = true;
emit interactionRemoved(convId, interactionId); emit interactionRemoved(convId, interactionId);
}
if (lastInteractionUpdated) { if (lastInteractionUpdated) {
// last interaction as changed, so the order can changes. // last interaction as changed, so the order can changes.
pimpl_->sortConversations(); pimpl_->sortConversations();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment