TF-1977 Rename the method for clarity
(cherry picked from commit 41c854cd9a93626d37dc230777b4b2ec4ef3fb22)
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
+2
-2
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user