TF-3334 Remove Email/get of mark as read & mark as star action
This commit is contained in:
@@ -7,12 +7,12 @@ import 'package:tmail_ui_user/features/base/state/ui_action_state.dart';
|
||||
import 'package:tmail_ui_user/features/email/domain/model/mark_read_action.dart';
|
||||
|
||||
class MarkAsEmailReadSuccess extends UIActionState {
|
||||
final Email updatedEmail;
|
||||
final EmailId emailId;
|
||||
final ReadActions readActions;
|
||||
final MarkReadAction markReadAction;
|
||||
|
||||
MarkAsEmailReadSuccess(
|
||||
this.updatedEmail,
|
||||
this.emailId,
|
||||
this.readActions,
|
||||
this.markReadAction,
|
||||
{
|
||||
@@ -22,7 +22,7 @@ class MarkAsEmailReadSuccess extends UIActionState {
|
||||
) : super(currentEmailState, currentMailboxState);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [updatedEmail, readActions, markReadAction, ...super.props];
|
||||
List<Object?> get props => [emailId, readActions, markReadAction, ...super.props];
|
||||
}
|
||||
|
||||
class MarkAsEmailReadFailure extends FeatureFailure {
|
||||
|
||||
@@ -1,15 +1,12 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/state.dart' as jmap;
|
||||
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
|
||||
import 'package:model/model.dart';
|
||||
import 'package:model/email/mark_star_action.dart';
|
||||
import 'package:tmail_ui_user/features/base/state/ui_action_state.dart';
|
||||
|
||||
class MarkAsStarEmailSuccess extends UIActionState {
|
||||
final Email updatedEmail;
|
||||
final MarkStarAction markStarAction;
|
||||
|
||||
MarkAsStarEmailSuccess(
|
||||
this.updatedEmail,
|
||||
this.markStarAction,
|
||||
{
|
||||
jmap.State? currentEmailState,
|
||||
@@ -18,7 +15,7 @@ class MarkAsStarEmailSuccess extends UIActionState {
|
||||
) : super(currentEmailState, currentMailboxState);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [updatedEmail, markStarAction, ...super.props];
|
||||
List<Object?> get props => [markStarAction, ...super.props];
|
||||
}
|
||||
|
||||
class MarkAsStarEmailFailure extends FeatureFailure {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/state.dart' as jmap;
|
||||
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
|
||||
import 'package:tmail_ui_user/features/base/state/ui_action_state.dart';
|
||||
import 'package:tmail_ui_user/features/email/domain/model/event_action.dart';
|
||||
|
||||
@@ -10,11 +9,9 @@ class StoreEventAttendanceStatusLoading extends LoadingState {}
|
||||
class StoreEventAttendanceStatusSuccess extends UIActionState {
|
||||
|
||||
final EventActionType eventActionType;
|
||||
final Email updatedEmail;
|
||||
|
||||
StoreEventAttendanceStatusSuccess(
|
||||
this.eventActionType,
|
||||
this.updatedEmail,
|
||||
{
|
||||
jmap.State? currentEmailState,
|
||||
jmap.State? currentMailboxState,
|
||||
@@ -24,7 +21,6 @@ class StoreEventAttendanceStatusSuccess extends UIActionState {
|
||||
@override
|
||||
List<Object?> get props => [
|
||||
eventActionType,
|
||||
updatedEmail,
|
||||
...super.props];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user