TF-1977 Rename the method for clarity

(cherry picked from commit 41c854cd9a93626d37dc230777b4b2ec4ef3fb22)
This commit is contained in:
dab246
2023-08-29 14:59:07 +07:00
committed by Dat Vu
parent 6ef028f023
commit 53db04c4dd
2 changed files with 3 additions and 8 deletions
@@ -12,12 +12,7 @@ class MailboxUIAction extends UIAction {
List<Object?> get props => []; List<Object?> get props => [];
} }
class SelectMailboxDefaultAction extends MailboxUIAction { class SelectMailboxDefaultAction extends MailboxUIAction {}
SelectMailboxDefaultAction();
@override
List<Object?> get props => [];
}
class RefreshChangeMailboxAction extends MailboxUIAction { class RefreshChangeMailboxAction extends MailboxUIAction {
final jmap.State? newState; final jmap.State? newState;
@@ -1593,7 +1593,7 @@ class MailboxDashBoardController extends ReloadableController {
void _handleNotificationMessageFromNewState(jmap.State newState, {bool onForeground = true}) { void _handleNotificationMessageFromNewState(jmap.State newState, {bool onForeground = true}) {
if (onForeground) { if (onForeground) {
_openInboxMailbox(); _openInboxMailboxFromNotification();
} }
} }
@@ -1615,7 +1615,7 @@ class MailboxDashBoardController extends ReloadableController {
dispatchRoute( DashboardRoutes.waiting); dispatchRoute( DashboardRoutes.waiting);
} }
void _openInboxMailbox() { void _openInboxMailboxFromNotification() {
popAllRouteIfHave(); popAllRouteIfHave();
dispatchMailboxUIAction(SelectMailboxDefaultAction()); dispatchMailboxUIAction(SelectMailboxDefaultAction());
dispatchRoute(DashboardRoutes.thread); dispatchRoute(DashboardRoutes.thread);