mirror of
https://github.com/linagora/tmail-flutter.git
synced 2026-12-06 08:06:47 +00:00
TF-2188 Disable sending queue on iOS
This commit is contained in:
1 parent
04af133110
commit
cec4ccba1a
2 files changed
+20
-18
No files matched your search
@@ -874,7 +874,7 @@ class ComposerController extends BaseController {
|
||||
? CreateNewMailboxRequest(Id(_uuid.v1()), PresentationMailbox.outboxMailboxName)
|
||||
: null;
|
||||
|
||||
if (PlatformInfo.isMobile && !networkConnectionController.isNetworkConnectionAvailable()) {
|
||||
if (PlatformInfo.isAndroid && !networkConnectionController.isNetworkConnectionAvailable()) {
|
||||
switch(arguments.sendingEmailActionType) {
|
||||
case SendingEmailActionType.create:
|
||||
_showConfirmDialogStoreSendingEmail(
|
||||
|
||||
+19
-17
@@ -366,23 +366,25 @@ class MailboxDashBoardController extends ReloadableController {
|
||||
@override
|
||||
void handleExceptionAction({Failure? failure, Exception? exception}) {
|
||||
super.handleExceptionAction(failure: failure, exception: exception);
|
||||
if (PlatformInfo.isMobile &&
|
||||
failure is SendEmailFailure &&
|
||||
exception is NoNetworkError) {
|
||||
if (failure.emailRequest.storedSendingId != null) {
|
||||
_handleStoreSendingEmail(
|
||||
failure.session,
|
||||
failure.accountId,
|
||||
failure.emailRequest,
|
||||
failure.mailboxRequest
|
||||
);
|
||||
} else {
|
||||
_handleUpdateSendingEmail(
|
||||
failure.session,
|
||||
failure.accountId,
|
||||
failure.emailRequest,
|
||||
failure.mailboxRequest
|
||||
);
|
||||
if (failure is SendEmailFailure && exception is NoNetworkError) {
|
||||
if (PlatformInfo.isIOS && currentContext != null) {
|
||||
_showToastSendMessageFailure(AppLocalizations.of(currentContext!).sendMessageFailure);
|
||||
} else if (PlatformInfo.isAndroid) {
|
||||
if (failure.emailRequest.storedSendingId != null) {
|
||||
_handleStoreSendingEmail(
|
||||
failure.session,
|
||||
failure.accountId,
|
||||
failure.emailRequest,
|
||||
failure.mailboxRequest
|
||||
);
|
||||
} else {
|
||||
_handleUpdateSendingEmail(
|
||||
failure.session,
|
||||
failure.accountId,
|
||||
failure.emailRequest,
|
||||
failure.mailboxRequest
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user