From 0d369c1b06aa57e489952d5205a6e829cc648bc3 Mon Sep 17 00:00:00 2001 From: dab246 Date: Fri, 25 Mar 2022 16:38:34 +0700 Subject: [PATCH] TF-348 Fix refresh email list when change email in search --- .../presentation/thread_controller.dart | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/lib/features/thread/presentation/thread_controller.dart b/lib/features/thread/presentation/thread_controller.dart index 6f53522b6..21bceb8ba 100644 --- a/lib/features/thread/presentation/thread_controller.dart +++ b/lib/features/thread/presentation/thread_controller.dart @@ -323,18 +323,17 @@ class ThreadController extends BaseController { properties: ThreadConstants.propertiesDefault, )); } - } else { - if (_accountId != null && _currentEmailState != null) { - consumeState(_refreshChangesEmailsInMailboxInteractor.execute( - _accountId!, - _currentEmailState!, - sort: _sortOrder, - propertiesCreated: ThreadConstants.propertiesDefault, - propertiesUpdated: ThreadConstants.propertiesUpdatedDefault, - inMailboxId: _currentMailboxId, - filterOption: filterMessageOption.value - )); - } + } + if (_accountId != null && _currentEmailState != null) { + consumeState(_refreshChangesEmailsInMailboxInteractor.execute( + _accountId!, + _currentEmailState!, + sort: _sortOrder, + propertiesCreated: ThreadConstants.propertiesDefault, + propertiesUpdated: ThreadConstants.propertiesUpdatedDefault, + inMailboxId: _currentMailboxId, + filterOption: filterMessageOption.value + )); } }