TF-2564 Change logic empty folder (Spam/Trash) to avoid cache still has data
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -96,7 +96,6 @@ class LocalThreadDataSourceImpl extends ThreadDataSource {
|
||||
Session session,
|
||||
AccountId accountId,
|
||||
MailboxId mailboxId,
|
||||
Future<void> Function(List<EmailId>? newDestroyed) updateDestroyedEmailCache
|
||||
) {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
@@ -90,15 +90,13 @@ class ThreadDataSourceImpl extends ThreadDataSource {
|
||||
Future<List<EmailId>> emptyMailboxFolder(
|
||||
Session session,
|
||||
AccountId accountId,
|
||||
MailboxId mailboxId,
|
||||
Future<void> Function(List<EmailId>? newDestroyed) updateDestroyedEmailCache
|
||||
MailboxId mailboxId
|
||||
) {
|
||||
return Future.sync(() async {
|
||||
return await _threadIsolateWorker.emptyMailboxFolder(
|
||||
session,
|
||||
accountId,
|
||||
mailboxId,
|
||||
updateDestroyedEmailCache,
|
||||
mailboxId
|
||||
);
|
||||
}).catchError(_exceptionThrower.throwException);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user