diff --git a/src/lrcinstance.cpp b/src/lrcinstance.cpp
index 2e42534a63f99431c80a7ea808547b7cdf73a19b..8f01703d7c867705b3c6ba4cbe551f9540b452a5 100644
--- a/src/lrcinstance.cpp
+++ b/src/lrcinstance.cpp
@@ -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;
             }
         }
     }