mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-17 20:08:28 +00:00
Filter out chatrooms in incomplete states from chat list
This commit is contained in:
parent
4b2ecde6bb
commit
19dc968113
1 changed files with 7 additions and 0 deletions
|
|
@ -125,6 +125,13 @@ void ChatList::setSelf(QSharedPointer<ChatList> 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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue