TF-1363: [Presentation] Fix margin for SpamReportBannerMobile and add check condition UnreadSpamNumber

This commit is contained in:
HuyNguyen
2023-01-16 17:35:53 +07:00
committed by Dat H. Pham
parent 04fd640384
commit 272a36fdbc
6 changed files with 160 additions and 251 deletions
@@ -1123,9 +1123,7 @@ class MailboxController extends BaseMailboxController {
break;
case MailboxActions.disableSpamReport:
case MailboxActions.enableSpamReport:
final _currentSpamReportState = mailboxDashBoardController.enableSpamRepot;
final _storeSpamReportState = _currentSpamReportState ? SpamReportState.disabled : SpamReportState.enabled;
mailboxDashBoardController.storeSpamReportStateAction(_storeSpamReportState);
mailboxDashBoardController.storeSpamReportStateAction();
return;
default:
break;