mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-17 20:08:28 +00:00
Fix premature exit of testing loop (cherry pick e340fa823695e89aecc59844b690805ec63a3656 from quanta/master)
This commit is contained in:
parent
d1a6ca5fd0
commit
e57307f47d
1 changed files with 4 additions and 2 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue