mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-07 14:44:01 +00:00
fix(CoreHandlers): do not display notification on call received when auto answer is enabled with no delay
This commit is contained in:
parent
a432a9d4e2
commit
7f42542deb
1 changed files with 7 additions and 1 deletions
|
|
@ -102,7 +102,13 @@ void CoreHandlers::onCallStateChanged (
|
|||
) {
|
||||
emit callStateChanged(call, state);
|
||||
|
||||
if (call->getState() == linphone::CallStateIncomingReceived)
|
||||
SettingsModel *settingsModel = CoreManager::getInstance()->getSettingsModel();
|
||||
if (
|
||||
call->getState() == linphone::CallStateIncomingReceived && (
|
||||
!settingsModel->getAutoAnswerStatus() ||
|
||||
settingsModel->getAutoAnswerDelay() > 0
|
||||
)
|
||||
)
|
||||
App::getInstance()->getNotifier()->notifyReceivedCall(call);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue