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

Revert "conversationmodel: removeConversation only in slotConversationRemoved"

This reverts commit bbda1066.

Reason for revert: <prevent contact removal for one_to_one>

Change-Id: I88dfa67def9af9d1bd517384df48d1f59e4c34a6
parent 64767190
No related branches found
No related tags found
No related merge requests found
...@@ -801,6 +801,9 @@ ConversationModel::removeConversation(const QString& uid, bool banned) ...@@ -801,6 +801,9 @@ ConversationModel::removeConversation(const QString& uid, bool banned)
} }
if (conversation.isSwarm()) { if (conversation.isSwarm()) {
ConfigurationManager::instance().removeConversation(owner.id, uid); ConfigurationManager::instance().removeConversation(owner.id, uid);
pimpl_->eraseConversation(conversationIdx);
pimpl_->invalidateModel();
emit conversationRemoved(uid);
// Still some other conversation, do nothing else // Still some other conversation, do nothing else
if (!banned && getConversationForPeerUri(peers.front()) != std::nullopt) if (!banned && getConversationForPeerUri(peers.front()) != std::nullopt)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment