Store email cache by AccountId

(cherry picked from commit 9b87da2990cef051c93eaab692aa2fa360ad9af2)
This commit is contained in:
dab246
2023-04-25 15:31:37 +07:00
committed by Dat Vu
parent 8414c0d819
commit 764a12bfec
7 changed files with 56 additions and 27 deletions
@@ -68,13 +68,15 @@ class LocalThreadDataSourceImpl extends ThreadDataSource {
}
@override
Future<void> update({
Future<void> update(
AccountId accountId, {
List<Email>? updated,
List<Email>? created,
List<EmailId>? destroyed
}) {
return Future.sync(() async {
return await _emailCacheManager.update(
accountId,
updated: updated,
created: created,
destroyed: destroyed);
@@ -79,7 +79,7 @@ class ThreadDataSourceImpl extends ThreadDataSource {
}
@override
Future<void> update({List<Email>? updated, List<Email>? created, List<EmailId>? destroyed}) {
Future<void> update(AccountId accountId, {List<Email>? updated, List<Email>? created, List<EmailId>? destroyed}) {
throw UnimplementedError();
}