fix(cnb): skip local email cache and add safe email/state cache clearing
(cherry picked from commit 0e7f589df58240badc1d2340e9856882aa075b63)
This commit is contained in:
@@ -133,12 +133,9 @@ class LocalThreadDataSourceImpl extends ThreadDataSource {
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> clearEmailCacheAndStateCache(AccountId accountId, Session session) {
|
||||
Future<void> clearEmailCacheAndStateCache() {
|
||||
return Future.sync(() async {
|
||||
return await _cachingManager.clearAllEmailAndStateCache(
|
||||
accountId: accountId,
|
||||
userName: session.username,
|
||||
);
|
||||
return await _cachingManager.clearAllEmailAndStateCache();
|
||||
}).catchError(_exceptionThrower.throwException);
|
||||
}
|
||||
}
|
||||
@@ -142,7 +142,7 @@ class ThreadDataSourceImpl extends ThreadDataSource {
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> clearEmailCacheAndStateCache(AccountId accountId, Session session) {
|
||||
Future<void> clearEmailCacheAndStateCache() {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user