TF-2464 Fix can not auto refresh list email when switch background mode to foreground mode
(cherry picked from commit 34b09c0aeacb8bc42cf7196adca2c65aa7eb47e9)
This commit is contained in:
@@ -26,8 +26,6 @@ import 'package:tmail_ui_user/features/login/domain/state/get_credential_state.d
|
||||
import 'package:tmail_ui_user/features/login/domain/state/get_stored_token_oidc_state.dart';
|
||||
import 'package:tmail_ui_user/features/login/domain/usecases/get_authenticated_account_interactor.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox_dashboard/presentation/bindings/mailbox_dashboard_bindings.dart';
|
||||
import 'package:tmail_ui_user/features/offline_mode/manager/new_email_cache_manager.dart';
|
||||
import 'package:tmail_ui_user/features/push_notification/data/local/fcm_cache_manager.dart';
|
||||
import 'package:tmail_ui_user/features/push_notification/presentation/action/fcm_action.dart';
|
||||
import 'package:tmail_ui_user/features/push_notification/presentation/bindings/fcm_interactor_bindings.dart';
|
||||
import 'package:tmail_ui_user/features/push_notification/presentation/controller/fcm_base_controller.dart';
|
||||
@@ -51,8 +49,6 @@ class FcmMessageController extends FcmBaseController {
|
||||
DynamicUrlInterceptors? _dynamicUrlInterceptors;
|
||||
AuthorizationInterceptors? _authorizationInterceptors;
|
||||
GetSessionInteractor? _getSessionInteractor;
|
||||
NewEmailCacheManager? _newEmailCacheManager;
|
||||
FCMCacheManager? _fcmCacheManager;
|
||||
|
||||
FcmMessageController._internal();
|
||||
|
||||
@@ -192,13 +188,6 @@ class FcmMessageController extends FcmBaseController {
|
||||
});
|
||||
|
||||
_getInteractorBindings();
|
||||
|
||||
await Future.wait([
|
||||
if (_newEmailCacheManager != null)
|
||||
_newEmailCacheManager!.closeNewEmailHiveCacheBox(),
|
||||
if (_fcmCacheManager != null)
|
||||
_fcmCacheManager!.closeCacheBox(),
|
||||
]);
|
||||
}
|
||||
|
||||
void _getInteractorBindings() {
|
||||
@@ -206,8 +195,6 @@ class FcmMessageController extends FcmBaseController {
|
||||
_dynamicUrlInterceptors = getBinding<DynamicUrlInterceptors>();
|
||||
_authorizationInterceptors = getBinding<AuthorizationInterceptors>();
|
||||
_getSessionInteractor = getBinding<GetSessionInteractor>();
|
||||
_newEmailCacheManager = getBinding<NewEmailCacheManager>();
|
||||
_fcmCacheManager = getBinding<FCMCacheManager>();
|
||||
|
||||
FcmTokenController.instance.initialBindingInteractor();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user