TF-348 Fix refresh email list when change email in search

This commit is contained in:
dab246
2022-03-25 16:38:34 +07:00
committed by Dat H. Pham
parent aceac30149
commit 0d369c1b06
@@ -323,18 +323,17 @@ class ThreadController extends BaseController {
properties: ThreadConstants.propertiesDefault, properties: ThreadConstants.propertiesDefault,
)); ));
} }
} else { }
if (_accountId != null && _currentEmailState != null) { if (_accountId != null && _currentEmailState != null) {
consumeState(_refreshChangesEmailsInMailboxInteractor.execute( consumeState(_refreshChangesEmailsInMailboxInteractor.execute(
_accountId!, _accountId!,
_currentEmailState!, _currentEmailState!,
sort: _sortOrder, sort: _sortOrder,
propertiesCreated: ThreadConstants.propertiesDefault, propertiesCreated: ThreadConstants.propertiesDefault,
propertiesUpdated: ThreadConstants.propertiesUpdatedDefault, propertiesUpdated: ThreadConstants.propertiesUpdatedDefault,
inMailboxId: _currentMailboxId, inMailboxId: _currentMailboxId,
filterOption: filterMessageOption.value filterOption: filterMessageOption.value
)); ));
}
} }
} }