mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-27 16:59:21 +00:00
Do not add chatroom to the list if created from a conference call
This commit is contained in:
parent
df979d4270
commit
6d5b9c58f2
1 changed files with 4 additions and 0 deletions
|
|
@ -177,6 +177,10 @@ void ChatList::setSelf(QSharedPointer<ChatList> me) {
|
|||
[this, addChatToList](const std::shared_ptr<linphone::Core> &core,
|
||||
const std::shared_ptr<linphone::ChatRoom> &chatRoom, linphone::ChatRoom::State state) {
|
||||
if (state == linphone::ChatRoom::State::Created) {
|
||||
if (chatRoom->getConferenceInfo()) {
|
||||
qWarning() << log().arg("Chatroom created during a conference, return");
|
||||
return;
|
||||
}
|
||||
auto chatAccount = chatRoom->getAccount();
|
||||
auto defaultAccount = core->getDefaultAccount();
|
||||
if (!chatAccount || !defaultAccount) return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue