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,
));
}
} 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
));
}
}