From 836fe17a35395550788e0b503420ac8eea7e1cee Mon Sep 17 00:00:00 2001 From: Gaelle Braud Date: Fri, 6 Mar 2026 15:37:45 +0100 Subject: [PATCH] Fix premature exit of testing loop (cherry pick e340fa823695e89aecc59844b690805ec63a3656 from quanta/master) --- Linphone/core/chat/ChatList.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Linphone/core/chat/ChatList.cpp b/Linphone/core/chat/ChatList.cpp index e497492ea..136562fe9 100644 --- a/Linphone/core/chat/ChatList.cpp +++ b/Linphone/core/chat/ChatList.cpp @@ -169,8 +169,10 @@ void ChatList::setSelf(QSharedPointer me) { bool canAdd = false; auto linphoneChatRooms = core->getDefaultAccount()->filterChatRooms(Utils::appStringToCoreString(mFilter)); for (auto it : linphoneChatRooms) { - if (it->getIdentifier() == room->getIdentifier()) canAdd = true; - break; + if (it->getIdentifier() == room->getIdentifier()) { + canAdd = true; + break; + } } if (!canAdd) { lInfo() << log().arg("Chat room to add does not match the current filter, return");