From cd787ccf4bcb6ed93d9c64ddbc833a8918fc45da Mon Sep 17 00:00:00 2001 From: Gaelle Braud Date: Wed, 15 Apr 2026 10:45:27 +0200 Subject: [PATCH] Filter out chatrooms in incomplete states from chat list --- Linphone/core/chat/ChatList.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Linphone/core/chat/ChatList.cpp b/Linphone/core/chat/ChatList.cpp index 455b724d9..7516a4ac3 100644 --- a/Linphone/core/chat/ChatList.cpp +++ b/Linphone/core/chat/ChatList.cpp @@ -125,6 +125,13 @@ void ChatList::setSelf(QSharedPointer me) { } auto linphoneChatRooms = currentAccount->filterChatRooms(Utils::appStringToCoreString(mFilter)); for (auto it : linphoneChatRooms) { + auto state = it->getState(); + if (state == linphone::ChatRoom::State::CreationFailed || + state == linphone::ChatRoom::State::CreationPending || + state == linphone::ChatRoom::State::TerminationPending || + state == linphone::ChatRoom::State::Instantiated) { + continue; + } auto model = createChatCore(it); chats->push_back(model); }