[Android][Disable work manager] Update the rule for the actions in Sending queue:

- editable all the time
- can resend manually only when have network

(cherry picked from commit c77f8de4041a53aa1a9a6c7198f2db9bd4cf0c60)
This commit is contained in:
Dat PHAM HOANG
2024-01-11 01:00:50 +07:00
committed by Dat H. Pham
parent ad4be01ea2
commit 4952fbe840
2 changed files with 13 additions and 21 deletions
@@ -1,4 +1,5 @@
import 'dart:convert';
import 'package:core/domain/extensions/datetime_extension.dart';
import 'package:core/utils/platform_info.dart';
import 'package:equatable/equatable.dart';
@@ -115,10 +116,8 @@ class SendingEmail with EquatableMixin {
bool get isRunning => sendingState == SendingState.running;
bool get isEditableSupported {
if (PlatformInfo.isAndroid) {
return isWaiting || isRunning || isCanceled;
} else if (PlatformInfo.isIOS) {
return isWaiting || isCanceled;
if (PlatformInfo.isMobile) {
return isWaiting || isCanceled || isError;
} else {
return false;
}