Get spam mailbox cache by AccountId
(cherry picked from commit c35685bf34f5f4fbf28c4cbca9842c20dee61ffc)
This commit is contained in:
+2
-2
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user