diff --git a/lib/features/thread/data/repository/thread_repository_impl.dart b/lib/features/thread/data/repository/thread_repository_impl.dart index 6df6a4a03..9b4c5d94d 100644 --- a/lib/features/thread/data/repository/thread_repository_impl.dart +++ b/lib/features/thread/data/repository/thread_repository_impl.dart @@ -49,7 +49,6 @@ class ThreadRepositoryImpl extends ThreadRepository { Properties? propertiesCreated, Properties? propertiesUpdated, bool getLatestChanges = true, - bool skipCache = false, } ) async* { log('ThreadRepositoryImpl::getAllEmail(): filter = ${emailFilter?.mailboxId}'); @@ -89,7 +88,7 @@ class ThreadRepositoryImpl extends ThreadRepository { ); } yield networkEmailResponse; - } else if (!skipCache) { + } else { yield localEmailResponse; } diff --git a/lib/features/thread/domain/repository/thread_repository.dart b/lib/features/thread/domain/repository/thread_repository.dart index 8eb198ec6..ec0503061 100644 --- a/lib/features/thread/domain/repository/thread_repository.dart +++ b/lib/features/thread/domain/repository/thread_repository.dart @@ -29,7 +29,6 @@ abstract class ThreadRepository { Properties? propertiesCreated, Properties? propertiesUpdated, bool getLatestChanges = true, - bool skipCache = false, } ); diff --git a/lib/features/thread/domain/usecases/get_emails_in_mailbox_interactor.dart b/lib/features/thread/domain/usecases/get_emails_in_mailbox_interactor.dart index 8e8a98bf5..0eccaae50 100644 --- a/lib/features/thread/domain/usecases/get_emails_in_mailbox_interactor.dart +++ b/lib/features/thread/domain/usecases/get_emails_in_mailbox_interactor.dart @@ -27,7 +27,6 @@ class GetEmailsInMailboxInteractor { Properties? propertiesCreated, Properties? propertiesUpdated, bool getLatestChanges = true, - bool skipCache = false, } ) async* { try { @@ -42,8 +41,7 @@ class GetEmailsInMailboxInteractor { emailFilter: emailFilter, propertiesCreated: propertiesCreated, propertiesUpdated: propertiesUpdated, - getLatestChanges: getLatestChanges, - skipCache: skipCache) + getLatestChanges: getLatestChanges) .map((emailResponse) => _toGetEmailState( emailResponse: emailResponse, currentMailboxId: emailFilter?.mailboxId diff --git a/lib/features/thread/presentation/thread_controller.dart b/lib/features/thread/presentation/thread_controller.dart index c91e9c4a8..5bc655f8d 100644 --- a/lib/features/thread/presentation/thread_controller.dart +++ b/lib/features/thread/presentation/thread_controller.dart @@ -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(); } }