TF-2189 Edit sending email in Sending Queue on iOS
Signed-off-by: dab246 <tdvu@linagora.com> (cherry picked from commit 79e1e2de5555973a5ba4a0c2b8fc3c091bcd63a3)
This commit is contained in:
@@ -12,10 +12,19 @@ class SendEmailLoading extends UIState {}
|
||||
|
||||
class SendEmailSuccess extends UIActionState {
|
||||
|
||||
final String? storedSendingId;
|
||||
|
||||
SendEmailSuccess({
|
||||
jmap.State? currentEmailState,
|
||||
jmap.State? currentMailboxState,
|
||||
this.storedSendingId,
|
||||
}) : super(currentEmailState, currentMailboxState);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [
|
||||
...super.props,
|
||||
storedSendingId,
|
||||
];
|
||||
}
|
||||
|
||||
class SendEmailFailure extends FeatureFailure {
|
||||
@@ -34,4 +43,14 @@ class SendEmailFailure extends FeatureFailure {
|
||||
this.mailboxRequest,
|
||||
this.sendingEmailActionType
|
||||
}) : super(exception: exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [
|
||||
...super.props,
|
||||
session,
|
||||
accountId,
|
||||
emailRequest,
|
||||
mailboxRequest,
|
||||
sendingEmailActionType,
|
||||
];
|
||||
}
|
||||
@@ -51,7 +51,8 @@ class SendEmailInteractor {
|
||||
yield Right<Failure, Success>(
|
||||
SendEmailSuccess(
|
||||
currentEmailState: currentEmailState,
|
||||
currentMailboxState: currentMailboxState
|
||||
currentMailboxState: currentMailboxState,
|
||||
storedSendingId: emailRequest.storedSendingId
|
||||
)
|
||||
);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user