Skip to content

Commit

Permalink
TF-1977 Rename the method for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
dab246 committed Aug 29, 2023
1 parent 388f062 commit 41c854c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@ class MailboxUIAction extends UIAction {
List<Object?> get props => [];
}

class SelectMailboxDefaultAction extends MailboxUIAction {
SelectMailboxDefaultAction();

@override
List<Object?> get props => [];
}
class SelectMailboxDefaultAction extends MailboxUIAction {}

class RefreshChangeMailboxAction extends MailboxUIAction {
final jmap.State? newState;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1593,7 +1593,7 @@ class MailboxDashBoardController extends ReloadableController {

void _handleNotificationMessageFromNewState(jmap.State newState, {bool onForeground = true}) {
if (onForeground) {
_openInboxMailbox();
_openInboxMailboxFromNotification();
}
}

Expand All @@ -1615,7 +1615,7 @@ class MailboxDashBoardController extends ReloadableController {
dispatchRoute( DashboardRoutes.waiting);
}

void _openInboxMailbox() {
void _openInboxMailboxFromNotification() {
popAllRouteIfHave();
dispatchMailboxUIAction(SelectMailboxDefaultAction());
dispatchRoute(DashboardRoutes.thread);
Expand Down

0 comments on commit 41c854c

Please sign in to comment.