TF-2189 Only store email to sending queue when offline on iOS
Signed-off-by: dab246 <tdvu@linagora.com> (cherry picked from commit 0dd22e5c3d300573b13d43fbfe50fc1622e2ab13)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'dart:convert';
|
||||
import 'package:core/core.dart';
|
||||
import 'package:core/domain/extensions/datetime_extension.dart';
|
||||
import 'package:equatable/equatable.dart';
|
||||
import 'package:flutter_date_range_picker/flutter_date_range_picker.dart';
|
||||
@@ -109,7 +110,15 @@ class SendingEmail with EquatableMixin {
|
||||
|
||||
bool get isRunning => sendingState == SendingState.running;
|
||||
|
||||
bool get isEditableSupported => isWaiting || isRunning || isCanceled;
|
||||
bool get isEditableSupported {
|
||||
if (PlatformInfo.isAndroid) {
|
||||
return isWaiting || isRunning || isCanceled;
|
||||
} else if (PlatformInfo.isIOS) {
|
||||
return isWaiting || isCanceled;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
List<Object?> get props => [
|
||||
|
||||
Reference in New Issue
Block a user