Store email cache by AccountId
(cherry picked from commit 9b87da2990cef051c93eaab692aa2fa360ad9af2)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user