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:
parent
89060c27f2
commit
335b2e5f12
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue