Fix cannot send email after close attachment reminder dialog

This commit is contained in:
dab246
2025-09-18 11:12:41 +07:00
committed by Dat H. Pham
parent 9ef068af85
commit 88eeb42424
2 changed files with 4 additions and 4 deletions
@@ -931,7 +931,7 @@ class ComposerController extends BaseController
onCancelAction: () { onCancelAction: () {
_sendButtonState = ButtonState.enabled; _sendButtonState = ButtonState.enabled;
} }
); ).whenComplete(() => _sendButtonState = ButtonState.enabled);
return; return;
} }
@@ -1094,7 +1094,7 @@ class ComposerController extends BaseController
_closeComposerAction(closeOverlays: true); _closeComposerAction(closeOverlays: true);
} }
}, },
); ).whenComplete(() => _sendButtonState = ButtonState.enabled);
} }
void _checkContactPermission() async { void _checkContactPermission() async {
@@ -28,7 +28,7 @@ extension AttachmentDetectionExtension on ComposerController {
} }
} }
void showAttachmentReminderModal({ Future<void> showAttachmentReminderModal({
required BuildContext context, required BuildContext context,
required List<String> keywords, required List<String> keywords,
required VoidCallback onConfirmAction, required VoidCallback onConfirmAction,
@@ -37,7 +37,7 @@ extension AttachmentDetectionExtension on ComposerController {
final appLocalizations = AppLocalizations.of(context); final appLocalizations = AppLocalizations.of(context);
String formattedKeywords = keywords.map((k) => '"$k"').join(', '); String formattedKeywords = keywords.map((k) => '"$k"').join(', ');
log('$runtimeType::showAttachmentReminderModal:formattedKeywords = $formattedKeywords'); log('$runtimeType::showAttachmentReminderModal:formattedKeywords = $formattedKeywords');
MessageDialogActionManager().showConfirmDialogAction( return MessageDialogActionManager().showConfirmDialogAction(
key: const Key('attachment_reminder_modal'), key: const Key('attachment_reminder_modal'),
context, context,
title: appLocalizations.attachmentReminderModalTitle, title: appLocalizations.attachmentReminderModalTitle,