1
0
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:
Anthony Bilinski 2019-01-06 14:47:40 -08:00
parent 51cf712a78
commit 92d3c959a1
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -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();
}