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:
dab246
2023-10-19 13:51:54 +07:00
committed by Dat H. Pham
parent a956685829
commit 3481e659df
11 changed files with 226 additions and 176 deletions
@@ -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 {