TF-1915 Updating correctly state sending email when work manager running

(cherry picked from commit 60b5683cddc2f8c026935528002c736f74018798)
This commit is contained in:
dab246
2023-06-09 19:32:31 +07:00
committed by Dat Vu
parent af73f90508
commit 8efc741090
11 changed files with 180 additions and 123 deletions
@@ -43,7 +43,7 @@ class SendingEmail with EquatableMixin {
this.mailboxNameRequest,
this.creationIdRequest,
this.selectMode = SelectMode.INACTIVE,
this.sendingState = SendingState.ready
this.sendingState = SendingState.waiting
});
Map<String, dynamic> toJson() {
@@ -99,9 +99,7 @@ class SendingEmail with EquatableMixin {
bool get isSelected => selectMode == SelectMode.ACTIVE;
bool get isDelivering => sendingState == SendingState.delivering;
bool get isReady => sendingState == SendingState.ready;
bool get isWaiting => sendingState == SendingState.waiting;
@override
List<Object?> get props => [