fix(cnb): use Email/query + Email/get when switch mailbox and reload the email list

(cherry picked from commit 9444d8d28acb3ad4997091162f7addb763d83234)
This commit is contained in:
dab246
2026-01-28 11:35:22 +07:00
committed by Dat H. Pham
parent 616a9247e8
commit 5cbf189ffe
4 changed files with 123 additions and 15 deletions
@@ -43,6 +43,16 @@ abstract class ThreadRepository {
Properties? propertiesCreated,
});
Stream<EmailsResponse> forceQueryAllEmailsForWeb({
required Session session,
required AccountId accountId,
UnsignedInt? limit,
int? position,
Set<Comparator>? sort,
EmailFilter? emailFilter,
Properties? propertiesCreated,
});
Stream<EmailsResponse> refreshChanges(
Session session,
AccountId accountId,