TF-2188 Disable sending queue on iOS
(cherry picked from commit cec4ccba1a4e4667db008796bbf89a166d3b333f)
This commit is contained in:
@@ -874,7 +874,7 @@ class ComposerController extends BaseController {
|
|||||||
? CreateNewMailboxRequest(Id(_uuid.v1()), PresentationMailbox.outboxMailboxName)
|
? CreateNewMailboxRequest(Id(_uuid.v1()), PresentationMailbox.outboxMailboxName)
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
if (PlatformInfo.isMobile && !networkConnectionController.isNetworkConnectionAvailable()) {
|
if (PlatformInfo.isAndroid && !networkConnectionController.isNetworkConnectionAvailable()) {
|
||||||
switch(arguments.sendingEmailActionType) {
|
switch(arguments.sendingEmailActionType) {
|
||||||
case SendingEmailActionType.create:
|
case SendingEmailActionType.create:
|
||||||
_showConfirmDialogStoreSendingEmail(
|
_showConfirmDialogStoreSendingEmail(
|
||||||
|
|||||||
+19
-17
@@ -366,23 +366,25 @@ class MailboxDashBoardController extends ReloadableController {
|
|||||||
@override
|
@override
|
||||||
void handleExceptionAction({Failure? failure, Exception? exception}) {
|
void handleExceptionAction({Failure? failure, Exception? exception}) {
|
||||||
super.handleExceptionAction(failure: failure, exception: exception);
|
super.handleExceptionAction(failure: failure, exception: exception);
|
||||||
if (PlatformInfo.isMobile &&
|
if (failure is SendEmailFailure && exception is NoNetworkError) {
|
||||||
failure is SendEmailFailure &&
|
if (PlatformInfo.isIOS && currentContext != null) {
|
||||||
exception is NoNetworkError) {
|
_showToastSendMessageFailure(AppLocalizations.of(currentContext!).sendMessageFailure);
|
||||||
if (failure.emailRequest.storedSendingId != null) {
|
} else if (PlatformInfo.isAndroid) {
|
||||||
_handleStoreSendingEmail(
|
if (failure.emailRequest.storedSendingId != null) {
|
||||||
failure.session,
|
_handleStoreSendingEmail(
|
||||||
failure.accountId,
|
failure.session,
|
||||||
failure.emailRequest,
|
failure.accountId,
|
||||||
failure.mailboxRequest
|
failure.emailRequest,
|
||||||
);
|
failure.mailboxRequest
|
||||||
} else {
|
);
|
||||||
_handleUpdateSendingEmail(
|
} else {
|
||||||
failure.session,
|
_handleUpdateSendingEmail(
|
||||||
failure.accountId,
|
failure.session,
|
||||||
failure.emailRequest,
|
failure.accountId,
|
||||||
failure.mailboxRequest
|
failure.emailRequest,
|
||||||
);
|
failure.mailboxRequest
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user