TF-2599 Fix notification flood
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
+4
-2
@@ -1,18 +1,20 @@
|
||||
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/user_name.dart';
|
||||
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
|
||||
|
||||
class GetEmailChangesToRemoveNotificationLoading extends UIState {}
|
||||
|
||||
class GetEmailChangesToRemoveNotificationSuccess extends UIState {
|
||||
|
||||
final UserName userName;
|
||||
final List<EmailId> emailIds;
|
||||
|
||||
GetEmailChangesToRemoveNotificationSuccess(this.emailIds);
|
||||
GetEmailChangesToRemoveNotificationSuccess(this.userName, this.emailIds);
|
||||
|
||||
@override
|
||||
List<Object> get props => [emailIds];
|
||||
List<Object> get props => [userName, emailIds];
|
||||
}
|
||||
|
||||
class GetEmailChangesToRemoveNotificationFailure extends FeatureFailure {
|
||||
|
||||
+7
-3
@@ -1,6 +1,7 @@
|
||||
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/user_name.dart';
|
||||
import 'package:model/mailbox/presentation_mailbox.dart';
|
||||
|
||||
class GetMailboxesNotPutNotificationsLoading extends UIState {}
|
||||
@@ -8,14 +9,17 @@ class GetMailboxesNotPutNotificationsLoading extends UIState {}
|
||||
class GetMailboxesNotPutNotificationsSuccess extends UIState {
|
||||
|
||||
final List<PresentationMailbox> mailboxes;
|
||||
final UserName userName;
|
||||
|
||||
GetMailboxesNotPutNotificationsSuccess(this.mailboxes);
|
||||
GetMailboxesNotPutNotificationsSuccess(this.mailboxes, this.userName);
|
||||
|
||||
@override
|
||||
List<Object> get props => [mailboxes];
|
||||
List<Object> get props => [mailboxes, userName];
|
||||
}
|
||||
|
||||
class GetMailboxesNotPutNotificationsFailure extends FeatureFailure {
|
||||
|
||||
GetMailboxesNotPutNotificationsFailure(exception) : super(exception: exception);
|
||||
final UserName userName;
|
||||
|
||||
GetMailboxesNotPutNotificationsFailure(exception, this.userName) : super(exception: exception);
|
||||
}
|
||||
Reference in New Issue
Block a user