From 2fc4439e1624b82881b02eda6b7558de766b7968 Mon Sep 17 00:00:00 2001 From: Gaelle Braud Date: Mon, 17 Nov 2025 10:56:57 +0100 Subject: [PATCH] Disable notifications if Offline status #LINQT-2173 --- Linphone/model/account/AccountModel.cpp | 2 +- Linphone/view/Page/Main/Account/AccountListView.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Linphone/model/account/AccountModel.cpp b/Linphone/model/account/AccountModel.cpp index e47b10a9f..44f8d0925 100644 --- a/Linphone/model/account/AccountModel.cpp +++ b/Linphone/model/account/AccountModel.cpp @@ -585,7 +585,7 @@ void AccountModel::setPresence(LinphoneEnums::Presence presence, } setNotificationsAllowed( - presence != LinphoneEnums::Presence::DoNotDisturb && + presence != LinphoneEnums::Presence::Offline && presence != LinphoneEnums::Presence::DoNotDisturb && (presence != LinphoneEnums::Presence::Away || core->getConfig()->getBool(accountSection, "allow_notifications_in_presence_away", true)) && (presence != LinphoneEnums::Presence::Busy || diff --git a/Linphone/view/Page/Main/Account/AccountListView.qml b/Linphone/view/Page/Main/Account/AccountListView.qml index 8026ace43..98d80954b 100644 --- a/Linphone/view/Page/Main/Account/AccountListView.qml +++ b/Linphone/view/Page/Main/Account/AccountListView.qml @@ -94,6 +94,6 @@ ColumnLayout{ != 0 ? getNextItem( AppCpp.accounts.getCount()) : null } - } +}