TF-1599 Handle remove notification when email mask as read or delete permanent

(cherry picked from commit 1abcc61474728cadca024d21eba43aaf4f09a078)
This commit is contained in:
dab246
2023-04-07 16:02:54 +07:00
committed by Dat Vu
parent fbaea1a951
commit 9dac861baa
10 changed files with 159 additions and 24 deletions
@@ -8,15 +8,17 @@ import 'package:jmap_dart_client/jmap/core/state.dart' as jmap;
class SynchronizeEmailOnForegroundAction extends FcmStateChangeAction {
final AccountId accountId;
final Session? session;
SynchronizeEmailOnForegroundAction(
TypeName typeName,
jmap.State newState,
this.accountId
this.accountId,
this.session
) : super(typeName, newState);
@override
List<Object?> get props => [typeName, newState, accountId];
List<Object?> get props => [typeName, newState, accountId, session];
}
class PushNotificationAction extends FcmStateChangeAction {
@@ -38,15 +40,17 @@ class PushNotificationAction extends FcmStateChangeAction {
class StoreEmailStateToRefreshAction extends FcmStateChangeAction {
final AccountId accountId;
final Session? session;
StoreEmailStateToRefreshAction(
TypeName typeName,
jmap.State newState,
this.accountId
this.accountId,
this.session
) : super(typeName, newState);
@override
List<Object?> get props => [typeName, newState, accountId];
List<Object?> get props => [typeName, newState, accountId, session];
}
class SynchronizeMailboxOnForegroundAction extends FcmStateChangeAction {