Get spam mailbox cache by AccountId

(cherry picked from commit c35685bf34f5f4fbf28c4cbca9842c20dee61ffc)
This commit is contained in:
dab246
2023-04-25 15:23:52 +07:00
committed by Dat Vu
parent 6189edd777
commit 8414c0d819
11 changed files with 20 additions and 19 deletions
@@ -1579,8 +1579,8 @@ class MailboxDashBoardController extends ReloadableController {
}
void refreshSpamReportBanner() {
if (spamReportController.enableSpamReport) {
spamReportController.getSpamMailboxCached();
if (spamReportController.enableSpamReport && accountId.value != null) {
spamReportController.getSpamMailboxCached(accountId.value!);
}
}
@@ -92,8 +92,8 @@ class SpamReportController extends BaseController {
mailboxFilterCondition: MailboxFilterCondition(role: Role('Spam'))));
}
void getSpamMailboxCached() {
consumeState(_getSpamMailboxCachedInteractor.execute());
void getSpamMailboxCached(AccountId accountId) {
consumeState(_getSpamMailboxCachedInteractor.execute(accountId));
}
void _storeLastTimeDismissedSpamReportedAction() {