From bbda106696c397a16c9f7da5e0ff40821509f90a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Blin?=
 <sebastien.blin@savoirfairelinux.com>
Date: Mon, 13 Sep 2021 14:51:43 -0400
Subject: [PATCH] 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
---
 src/conversationmodel.cpp | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/conversationmodel.cpp b/src/conversationmodel.cpp
index 77174768..7d7bae3a 100644
--- a/src/conversationmodel.cpp
+++ b/src/conversationmodel.cpp
@@ -801,9 +801,6 @@ ConversationModel::removeConversation(const QString& uid, bool banned)
     }
     if (conversation.isSwarm()) {
         ConfigurationManager::instance().removeConversation(owner.id, uid);
-        pimpl_->eraseConversation(conversationIdx);
-        pimpl_->invalidateModel();
-        emit conversationRemoved(uid);
 
         // Still some other conversation, do nothing else
         if (!banned && getConversationForPeerUri(peers.front()) != std::nullopt)
-- 
GitLab