Fix premature exit of testing loop (cherry pick e340fa823695e89aecc59844b690805ec63a3656 from quanta/master)

This commit is contained in:
Gaelle Braud 2026-03-06 15:37:45 +01:00
parent 574a9b505f
commit 836fe17a35

View file

@ -169,8 +169,10 @@ void ChatList::setSelf(QSharedPointer<ChatList> 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");