Skip to content
Snippets Groups Projects
Commit bbda1066 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

conversationmodel: removeConversation only in slotConversationRemoved

Logic is handled by the daemon, nothing to do for removeConversation

Change-Id: I4bdf41c5d7d21cfd523409602004b668627ecadc
GitLab: https://git.jami.net/savoirfairelinux/ring-project/-/issues/1282
parent dacfa05f
No related branches found
No related tags found
No related merge requests found
...@@ -801,9 +801,6 @@ ConversationModel::removeConversation(const QString& uid, bool banned) ...@@ -801,9 +801,6 @@ 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