mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(groups): only leave audio call if in a call
Removes debug log spam of leaving audio call every time someone joins a text group.
This commit is contained in:
parent
51cf712a78
commit
92d3c959a1
|
@ -182,7 +182,7 @@ void GroupChatForm::onUserListChanged()
|
|||
const int peersCount = group->getPeersCount();
|
||||
const bool online = peersCount > 1;
|
||||
headWidget->updateCallButtons(online, inCall);
|
||||
if (!online || !group->isAvGroupchat()) {
|
||||
if (inCall && (!online || !group->isAvGroupchat())) {
|
||||
Core::getInstance()->getAv()->leaveGroupCall(group->getId());
|
||||
hideNetcam();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user