TF-2667 Store email to sending queue when sending with no connection on mobile

This commit is contained in:
dab246
2024-03-22 15:35:25 +07:00
committed by Dat H. Pham
parent 5d502736d8
commit f80b77cc03
2 changed files with 19 additions and 5 deletions
@@ -807,7 +807,7 @@ class ComposerController extends BaseController with DragDropFileMixin {
cancelToken: cancelToken
);
log('ComposerController::_handleSendMessages: resultState = $resultState');
if (resultState is SendEmailSuccess) {
if (resultState is SendEmailSuccess || mailboxDashBoardController.validateSendingEmailFailedWhenNetworkIsLostOnMobile(resultState)) {
_sendButtonState = ButtonState.enabled;
_closeComposerAction(result: resultState);
} else if (resultState is SendEmailFailure && resultState.exception is SendingEmailCanceledException) {