From 402f8de863baf1d79436e5318d034a8ea4670652 Mon Sep 17 00:00:00 2001 From: dab246 Date: Wed, 23 Nov 2022 15:15:49 +0700 Subject: [PATCH] TF-1217 Call refresh change email on foreground message --- lib/features/thread/presentation/thread_controller.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/features/thread/presentation/thread_controller.dart b/lib/features/thread/presentation/thread_controller.dart index cad45e4db..595b05816 100644 --- a/lib/features/thread/presentation/thread_controller.dart +++ b/lib/features/thread/presentation/thread_controller.dart @@ -267,6 +267,11 @@ class ThreadController extends BaseController with EmailActionController { _navigationRouter = action.navigationRouter; _activateSearchFromRouter(); mailboxDashBoardController.clearDashBoardAction(); + } else if (action is RefreshChangedEmailAction) { + if (action.newState != _currentEmailState) { + _refreshEmailChanges(); + } + mailboxDashBoardController.clearDashBoardAction(); } });