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
@@ -34,7 +34,7 @@ class SendingQueueView extends GetWidget<SendingQueueController> with AppLoaderM
}),
const Divider(color: AppColor.colorDividerComposer, height: 1),
Obx(() {
if (!controller.dashboardController!.listSendingEmails.isAllNotReadySendingState()) {
if (!controller.isConnectedNetwork) {
return const BannerMessageSendingQueueWidget();
} else {
return const SizedBox.shrink();
@@ -87,7 +87,7 @@ class SendingQueueView extends GetWidget<SendingQueueController> with AppLoaderM
onLongPressAction: controller.handleOnLongPressAction,
onSelectLeadingAction: controller.toggleSelectionSendingEmail,
onTapAction: (actionType, sendingEmail) {
if (!controller.isConnectedNetwork && sendingEmail.isReady) {
if (!controller.isConnectedNetwork && sendingEmail.isWaiting) {
controller.handleSendingEmailActionType(context, actionType, [sendingEmail]);
}
});