Store and get fcm cache by AccountId

(cherry picked from commit e327dff45a4fc67d0c5a2d2afe64fc4673e2eac1)
This commit is contained in:
dab246
2023-04-25 18:15:02 +07:00
committed by Dat Vu
parent eb27022a08
commit 550752a2a4
23 changed files with 130 additions and 107 deletions
@@ -1428,11 +1428,11 @@ class MailboxDashBoardController extends ReloadableController {
} catch (e) {
logError('MailboxDashBoardController::_handleRefreshActionWhenBackToApp(): $e');
}
if (_getEmailStateToRefreshInteractor != null) {
consumeState(_getEmailStateToRefreshInteractor!.execute());
if (_getEmailStateToRefreshInteractor != null && accountId.value != null) {
consumeState(_getEmailStateToRefreshInteractor!.execute(accountId.value!));
}
if (_getMailboxStateToRefreshInteractor != null) {
consumeState(_getMailboxStateToRefreshInteractor!.execute());
if (_getMailboxStateToRefreshInteractor != null && accountId.value != null) {
consumeState(_getMailboxStateToRefreshInteractor!.execute(accountId.value!));
}
}
@@ -1443,8 +1443,8 @@ class MailboxDashBoardController extends ReloadableController {
} catch (e) {
logError('MailboxDashBoardController::_deleteEmailStateToRefreshAction(): $e');
}
if (_deleteEmailStateToRefreshInteractor != null) {
consumeState(_deleteEmailStateToRefreshInteractor!.execute());
if (_deleteEmailStateToRefreshInteractor != null && accountId.value != null) {
consumeState(_deleteEmailStateToRefreshInteractor!.execute(accountId.value!));
}
}
@@ -1455,8 +1455,8 @@ class MailboxDashBoardController extends ReloadableController {
} catch (e) {
logError('MailboxDashBoardController::_deleteMailboxStateToRefreshAction(): $e');
}
if (_deleteMailboxStateToRefreshInteractor != null) {
consumeState(_deleteMailboxStateToRefreshInteractor!.execute());
if (_deleteMailboxStateToRefreshInteractor != null && accountId.value != null) {
consumeState(_deleteMailboxStateToRefreshInteractor!.execute(accountId.value!));
}
}