Disable notifications if Offline status #LINQT-2173

This commit is contained in:
Gaelle Braud 2025-11-17 10:56:57 +01:00
parent 0b9a0ead2a
commit 2fc4439e16
2 changed files with 2 additions and 2 deletions

View file

@ -585,7 +585,7 @@ void AccountModel::setPresence(LinphoneEnums::Presence presence,
} }
setNotificationsAllowed( setNotificationsAllowed(
presence != LinphoneEnums::Presence::DoNotDisturb && presence != LinphoneEnums::Presence::Offline && presence != LinphoneEnums::Presence::DoNotDisturb &&
(presence != LinphoneEnums::Presence::Away || (presence != LinphoneEnums::Presence::Away ||
core->getConfig()->getBool(accountSection, "allow_notifications_in_presence_away", true)) && core->getConfig()->getBool(accountSection, "allow_notifications_in_presence_away", true)) &&
(presence != LinphoneEnums::Presence::Busy || (presence != LinphoneEnums::Presence::Busy ||

View file

@ -94,6 +94,6 @@ ColumnLayout{
!= 0 ? getNextItem( != 0 ? getNextItem(
AppCpp.accounts.getCount()) : null AppCpp.accounts.getCount()) : null
} }
} }