fix(cnb): skip local email cache and add safe email/state cache clearing
(cherry picked from commit 0e7f589df58240badc1d2340e9856882aa075b63)
This commit is contained in:
@@ -102,5 +102,5 @@ abstract class ThreadRepository {
|
||||
StreamController<dartz.Either<Failure, Success>> onProgressController
|
||||
);
|
||||
|
||||
Future<void> clearEmailCacheAndStateCache(AccountId accountId, Session session);
|
||||
Future<void> clearEmailCacheAndStateCache();
|
||||
}
|
||||
@@ -36,7 +36,7 @@ class CleanAndGetEmailsInMailboxInteractor {
|
||||
try {
|
||||
yield Right<Failure, Success>(CleanAndGetAllEmailLoading());
|
||||
|
||||
await _threadRepository.clearEmailCacheAndStateCache(accountId, session);
|
||||
await _threadRepository.clearEmailCacheAndStateCache();
|
||||
|
||||
yield* _getEmailsInMailboxInteractor.execute(
|
||||
session,
|
||||
|
||||
Reference in New Issue
Block a user