TF-2384 Store email delivery state in background mode on iOS

Signed-off-by: dab246 <tdvu@linagora.com>
(cherry picked from commit d87c633809a8eb5779d0d087e3d762b4d825c757)
This commit is contained in:
dab246
2023-12-24 21:50:48 +07:00
committed by Dat H. Pham
parent a1f86d502a
commit e41d329c72
@@ -133,7 +133,7 @@ class EmailChangeListener extends ChangeListener {
_userName = userName;
log('EmailChangeListener::_pushNotificationAction():newState: $newState');
if (PlatformInfo.isWeb) {
if (PlatformInfo.isWeb || PlatformInfo.isIOS) {
_storeEmailDeliveryStateAction(accountId, userName, _newStateEmailDelivery!);
} else if (PlatformInfo.isAndroid) {
_getStoredEmailDeliveryState(accountId, userName);