Get all email cache by AccountId
(cherry picked from commit e9f172861d595549158feb829c74afc76dd7311e)
This commit is contained in:
@@ -52,7 +52,8 @@ class LocalThreadDataSourceImpl extends ThreadDataSource {
|
||||
}
|
||||
|
||||
@override
|
||||
Future<List<Email>> getAllEmailCache({
|
||||
Future<List<Email>> getAllEmailCache(
|
||||
AccountId accountId, {
|
||||
MailboxId? inMailboxId,
|
||||
Set<Comparator>? sort,
|
||||
FilterMessageOption? filterOption,
|
||||
@@ -60,6 +61,7 @@ class LocalThreadDataSourceImpl extends ThreadDataSource {
|
||||
}) {
|
||||
return Future.sync(() async {
|
||||
return await _emailCacheManager.getAllEmail(
|
||||
accountId,
|
||||
inMailboxId: inMailboxId,
|
||||
sort: sort,
|
||||
filterOption: filterOption ?? FilterMessageOption.all,
|
||||
|
||||
@@ -74,7 +74,7 @@ class ThreadDataSourceImpl extends ThreadDataSource {
|
||||
}
|
||||
|
||||
@override
|
||||
Future<List<Email>> getAllEmailCache({MailboxId? inMailboxId, Set<Comparator>? sort, FilterMessageOption? filterOption, UnsignedInt? limit}) {
|
||||
Future<List<Email>> getAllEmailCache(AccountId accountId, {MailboxId? inMailboxId, Set<Comparator>? sort, FilterMessageOption? filterOption, UnsignedInt? limit}) {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user