From a956685829432574573a7ccf43be27271ea559d3 Mon Sep 17 00:00:00 2001 From: dab246 Date: Thu, 19 Oct 2023 12:01:11 +0700 Subject: [PATCH] TF-2189 Delete sending email in Sending Queue on iOS Signed-off-by: dab246 (cherry picked from commit 1aecd40b739befad240d5a1f80b828417147ecf3) --- .../sending_queue/presentation/sending_queue_controller.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/features/sending_queue/presentation/sending_queue_controller.dart b/lib/features/sending_queue/presentation/sending_queue_controller.dart index 95e70b129..ca16cac74 100644 --- a/lib/features/sending_queue/presentation/sending_queue_controller.dart +++ b/lib/features/sending_queue/presentation/sending_queue_controller.dart @@ -254,7 +254,9 @@ class SendingQueueController extends BaseController with MessageDialogActionMixi } void _handleDeleteListSendingEmailSuccess(DeleteMultipleSendingEmailSuccess success) async { - await Future.wait(success.sendingIds.map(WorkManagerController().cancelByUniqueId)); + if (PlatformInfo.isAndroid) { + await Future.wait(success.sendingIds.map(WorkManagerController().cancelByUniqueId)); + } if (currentContext != null && currentOverlayContext != null) { _appToast.showToastSuccessMessage(