TF-437 Handle mailbox/changes in foreground
This commit is contained in:
@@ -257,12 +257,17 @@ class MailboxController extends BaseMailboxController {
|
||||
});
|
||||
|
||||
dashboardActionWorker = ever(mailboxDashBoardController.dashBoardAction, (action) {
|
||||
log('MailboxController::_registerListenerWorker():action: $action');
|
||||
if (action is ClearSearchEmailAction) {
|
||||
_switchBackToMailboxDefault();
|
||||
} else if (action is SelectMailboxDefaultAction) {
|
||||
if (mailboxDashBoardController.selectedMailbox.value == null) {
|
||||
_switchBackToMailboxDefault();
|
||||
}
|
||||
} else if (action is RefreshChangeMailboxAction) {
|
||||
if (action.newState != _currentMailboxState) {
|
||||
refreshMailboxChanges();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user