TF-3334 Skip getting stored state in interactor when performing actions with email and mailbox
This commit is contained in:
@@ -39,7 +39,7 @@ class MarkAsMailboxReadAllSuccess extends UIActionState {
|
||||
];
|
||||
}
|
||||
|
||||
class MarkAsMailboxReadHasSomeEmailFailure extends UIActionState {
|
||||
class MarkAsMailboxReadHasSomeEmailFailure extends UIState {
|
||||
|
||||
final String mailboxDisplayName;
|
||||
final int countEmailsRead;
|
||||
@@ -47,17 +47,12 @@ class MarkAsMailboxReadHasSomeEmailFailure extends UIActionState {
|
||||
MarkAsMailboxReadHasSomeEmailFailure(
|
||||
this.mailboxDisplayName,
|
||||
this.countEmailsRead,
|
||||
{
|
||||
jmap.State? currentEmailState,
|
||||
jmap.State? currentMailboxState,
|
||||
}
|
||||
) : super(currentMailboxState, currentEmailState);
|
||||
);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [
|
||||
mailboxDisplayName,
|
||||
countEmailsRead,
|
||||
...super.props
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:jmap_dart_client/jmap/mail/mailbox/mailbox.dart';
|
||||
import 'package:tmail_ui_user/features/base/state/ui_action_state.dart';
|
||||
import 'package:tmail_ui_user/features/email/domain/model/move_action.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/state.dart' as jmap;
|
||||
|
||||
class LoadingMoveMailbox extends UIState {}
|
||||
|
||||
class MoveMailboxSuccess extends UIActionState {
|
||||
class MoveMailboxSuccess extends UIState {
|
||||
|
||||
final MailboxId mailboxIdSelected;
|
||||
final MoveAction moveAction;
|
||||
@@ -22,10 +20,8 @@ class MoveMailboxSuccess extends UIActionState {
|
||||
this.parentId,
|
||||
this.destinationMailboxId,
|
||||
this.destinationMailboxDisplayName,
|
||||
jmap.State? currentEmailState,
|
||||
jmap.State? currentMailboxState,
|
||||
}
|
||||
) : super(currentEmailState, currentMailboxState);
|
||||
);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [
|
||||
@@ -34,7 +30,6 @@ class MoveMailboxSuccess extends UIActionState {
|
||||
parentId,
|
||||
destinationMailboxId,
|
||||
destinationMailboxDisplayName,
|
||||
...super.props
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -1,17 +1,9 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:tmail_ui_user/features/base/state/ui_action_state.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/state.dart' as jmap;
|
||||
|
||||
class LoadingRenameMailbox extends UIState {}
|
||||
|
||||
class RenameMailboxSuccess extends UIActionState {
|
||||
|
||||
RenameMailboxSuccess({
|
||||
jmap.State? currentEmailState,
|
||||
jmap.State? currentMailboxState,
|
||||
}) : super(currentEmailState, currentMailboxState);
|
||||
}
|
||||
class RenameMailboxSuccess extends UIState {}
|
||||
|
||||
class RenameMailboxFailure extends FeatureFailure {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user