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,
|
[this, addChatToList](const std::shared_ptr<linphone::Core> &core,
|
||||||
const std::shared_ptr<linphone::ChatRoom> &chatRoom, linphone::ChatRoom::State state) {
|
const std::shared_ptr<linphone::ChatRoom> &chatRoom, linphone::ChatRoom::State state) {
|
||||||
if (state == linphone::ChatRoom::State::Created) {
|
if (state == linphone::ChatRoom::State::Created) {
|
||||||
|
if (chatRoom->getConferenceInfo()) {
|
||||||
|
qWarning() << log().arg("Chatroom created during a conference, return");
|
||||||
|
return;
|
||||||
|
}
|
||||||
auto chatAccount = chatRoom->getAccount();
|
auto chatAccount = chatRoom->getAccount();
|
||||||
auto defaultAccount = core->getDefaultAccount();
|
auto defaultAccount = core->getDefaultAccount();
|
||||||
if (!chatAccount || !defaultAccount) return;
|
if (!chatAccount || !defaultAccount) return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue