TF-3719 Delete email in cache when get notFound in Email/get

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-05-14 12:42:15 +07:00
committed by Dat H. Pham
parent 8bb428b8b9
commit 2b88f07f6d
3 changed files with 45 additions and 8 deletions
@@ -5,10 +5,12 @@ import 'package:jmap_dart_client/jmap/mail/email/email.dart';
class EmailsResponse with EquatableMixin {
final List<Email>? emailList;
final List<EmailId>? notFoundEmailIds;
final State? state;
const EmailsResponse({
this.emailList,
this.notFoundEmailIds,
this.state
});
@@ -16,6 +18,8 @@ class EmailsResponse with EquatableMixin {
bool hasState() => state != null;
bool get existNotFoundEmails => notFoundEmailIds?.isNotEmpty == true;
@override
List<Object?> get props => [emailList, state];
List<Object?> get props => [emailList, notFoundEmailIds, state];
}