1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-08-09 17:25:39 +02:00

lrcinstance: reverse incorrect method

withVideo should check if the call got video

Change-Id: I5b7e13b7269735bea5f4ecc63a98687cb93bb4c1
GitLab: #617
This commit is contained in:
Sébastien Blin 2021-12-06 10:54:19 -05:00
parent 89060c27f2
commit 335b2e5f12

View file

@ -151,13 +151,13 @@ LRCInstance::hasActiveCall(bool withVideo)
for (const auto& accountId : accountList) {
auto& accountInfo = accountModel().getAccountInfo(accountId);
if (withVideo) {
if (accountInfo.callModel->hasCall(callId))
return true;
} else {
if (accountInfo.callModel->hasCall(callId)) {
auto call = accountInfo.callModel->getCall(callId);
result |= !(call.isAudioOnly || call.videoMuted);
}
} else {
if (accountInfo.callModel->hasCall(callId))
return true;
}
}
}