Skip to content
Snippets Groups Projects
Commit 335b2e5f authored by Sébastien Blin's avatar Sébastien Blin
Browse files

lrcinstance: reverse incorrect method

withVideo should check if the call got video

Change-Id: I5b7e13b7269735bea5f4ecc63a98687cb93bb4c1
GitLab: #617
parent 89060c27
No related branches found
No related tags found
No related merge requests found
...@@ -151,13 +151,13 @@ LRCInstance::hasActiveCall(bool withVideo) ...@@ -151,13 +151,13 @@ LRCInstance::hasActiveCall(bool withVideo)
for (const auto& accountId : accountList) { for (const auto& accountId : accountList) {
auto& accountInfo = accountModel().getAccountInfo(accountId); auto& accountInfo = accountModel().getAccountInfo(accountId);
if (withVideo) { if (withVideo) {
if (accountInfo.callModel->hasCall(callId))
return true;
} else {
if (accountInfo.callModel->hasCall(callId)) { if (accountInfo.callModel->hasCall(callId)) {
auto call = accountInfo.callModel->getCall(callId); auto call = accountInfo.callModel->getCall(callId);
result |= !(call.isAudioOnly || call.videoMuted); result |= !(call.isAudioOnly || call.videoMuted);
} }
} else {
if (accountInfo.callModel->hasCall(callId))
return true;
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment