diff --git a/src/calladapter.cpp b/src/calladapter.cpp index 604534d56c1bbe5846aa41046cc6ec925ae9aa33..2ab9dc7751d6c90f23391af7cce5d526f9acbd04 100644 --- a/src/calladapter.cpp +++ b/src/calladapter.cpp @@ -155,7 +155,7 @@ CallAdapter::slotShowIncomingCallView(const QString& accountId, const conversati } } else { auto accountProperties = LRCInstance::accountModel().getAccountConfig(selectedAccountId); - if (!accountProperties.autoAnswer && !accountProperties.isRendezVous) { + if (!accountProperties.isRendezVous) { // App not focused or in different account if (QApplication::focusObject() == nullptr || accountId != selectedAccountId) { showNotification(accountId, convInfo.uid); @@ -184,8 +184,9 @@ CallAdapter::slotShowIncomingCallView(const QString& accountId, const conversati } else { // Not current conversation if (currentConvHasCall) { auto currentCall = callModel->getCall(currentConvInfo.callId); - if (currentCall.status == lrc::api::call::Status::CONNECTED - || currentCall.status == lrc::api::call::Status::IN_PROGRESS) { + if ((currentCall.status == lrc::api::call::Status::CONNECTED + || currentCall.status == lrc::api::call::Status::IN_PROGRESS) + && !accountProperties.autoAnswer) { showNotification(accountId, convInfo.uid); return; }