TF-2464 Remove save email delivery state in dart code
Signed-off-by: dab246 <tdvu@linagora.com> (cherry picked from commit 6209b3550d8687aefc1cf92f3fa4e4516686228b)
This commit is contained in:
@@ -47,7 +47,6 @@ import 'package:tmail_ui_user/features/push_notification/presentation/listener/c
|
||||
import 'package:tmail_ui_user/features/push_notification/presentation/notification/local_notification_manager.dart';
|
||||
import 'package:tmail_ui_user/features/thread/domain/constants/thread_constants.dart';
|
||||
import 'package:tmail_ui_user/main/routes/route_navigation.dart';
|
||||
import 'package:tmail_ui_user/main/utils/ios_sharing_manager.dart';
|
||||
|
||||
class EmailChangeListener extends ChangeListener {
|
||||
|
||||
@@ -63,7 +62,6 @@ class EmailChangeListener extends ChangeListener {
|
||||
GetListDetailedEmailByIdInteractor? _getListDetailedEmailByIdInteractor;
|
||||
DynamicUrlInterceptors? _dynamicUrlInterceptors;
|
||||
StoreListNewEmailInteractor? _storeListNewEmailInteractor;
|
||||
IOSSharingManager? _iosSharingManager;
|
||||
|
||||
jmap.State? _newStateEmailDelivery;
|
||||
AccountId? _accountId;
|
||||
@@ -85,7 +83,6 @@ class EmailChangeListener extends ChangeListener {
|
||||
_getListDetailedEmailByIdInteractor = getBinding<GetListDetailedEmailByIdInteractor>();
|
||||
_dynamicUrlInterceptors = getBinding<DynamicUrlInterceptors>();
|
||||
_storeListNewEmailInteractor = getBinding<StoreListNewEmailInteractor>();
|
||||
_iosSharingManager = getBinding<IOSSharingManager>();
|
||||
} catch (e) {
|
||||
logError('EmailChangeListener::_internal(): IS NOT REGISTERED: ${e.toString()}');
|
||||
}
|
||||
@@ -140,7 +137,6 @@ class EmailChangeListener extends ChangeListener {
|
||||
_storeEmailDeliveryStateAction(accountId, userName, _newStateEmailDelivery!);
|
||||
} else if (PlatformInfo.isIOS) {
|
||||
_storeEmailDeliveryStateAction(accountId, userName, _newStateEmailDelivery!);
|
||||
_updateKeychainSharingSession(accountId, _newStateEmailDelivery!.value);
|
||||
} else if (PlatformInfo.isAndroid) {
|
||||
_getStoredEmailDeliveryState(accountId, userName);
|
||||
}
|
||||
@@ -328,11 +324,4 @@ class EmailChangeListener extends ChangeListener {
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
void _updateKeychainSharingSession(AccountId accountId, String emailDeliveryState) async {
|
||||
if (_iosSharingManager == null) {
|
||||
return;
|
||||
}
|
||||
await _iosSharingManager!.updateEmailDeliveryStateInKeyChain(accountId, emailDeliveryState);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user