TF-3385 Remove skipCache mechanism in get all emails

This commit is contained in:
DatDang
2025-01-03 15:11:03 +07:00
committed by Dat H. Pham
parent 2e4b38fcb2
commit 6396b50bc9
4 changed files with 3 additions and 9 deletions
@@ -489,7 +489,6 @@ class ThreadController extends BaseController with EmailActionController {
void _getAllEmailAction({
bool getLatestChanges = true,
bool skipCache = false,
}) {
log('ThreadController::_getAllEmailAction:');
if (_session != null &&_accountId != null) {
@@ -506,7 +505,6 @@ class ThreadController extends BaseController with EmailActionController {
propertiesCreated: EmailUtils.getPropertiesForEmailGetMethod(_session!, _accountId!),
propertiesUpdated: ThreadConstants.propertiesUpdatedDefault,
getLatestChanges: getLatestChanges,
skipCache: skipCache,
));
} else {
consumeState(Stream.value(Left(GetAllEmailFailure(NotFoundSessionException()))));
@@ -555,7 +553,7 @@ class ThreadController extends BaseController with EmailActionController {
if (searchController.isSearchEmailRunning) {
_searchEmail(limit: limitEmailFetched);
} else {
_getAllEmailAction(skipCache: true);
_getAllEmailAction();
}
}