Fix cannot send email after close attachment reminder dialog
This commit is contained in:
@@ -931,7 +931,7 @@ class ComposerController extends BaseController
|
||||
onCancelAction: () {
|
||||
_sendButtonState = ButtonState.enabled;
|
||||
}
|
||||
);
|
||||
).whenComplete(() => _sendButtonState = ButtonState.enabled);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1094,7 +1094,7 @@ class ComposerController extends BaseController
|
||||
_closeComposerAction(closeOverlays: true);
|
||||
}
|
||||
},
|
||||
);
|
||||
).whenComplete(() => _sendButtonState = ButtonState.enabled);
|
||||
}
|
||||
|
||||
void _checkContactPermission() async {
|
||||
|
||||
@@ -28,7 +28,7 @@ extension AttachmentDetectionExtension on ComposerController {
|
||||
}
|
||||
}
|
||||
|
||||
void showAttachmentReminderModal({
|
||||
Future<void> showAttachmentReminderModal({
|
||||
required BuildContext context,
|
||||
required List<String> keywords,
|
||||
required VoidCallback onConfirmAction,
|
||||
@@ -37,7 +37,7 @@ extension AttachmentDetectionExtension on ComposerController {
|
||||
final appLocalizations = AppLocalizations.of(context);
|
||||
String formattedKeywords = keywords.map((k) => '"$k"').join(', ');
|
||||
log('$runtimeType::showAttachmentReminderModal:formattedKeywords = $formattedKeywords');
|
||||
MessageDialogActionManager().showConfirmDialogAction(
|
||||
return MessageDialogActionManager().showConfirmDialogAction(
|
||||
key: const Key('attachment_reminder_modal'),
|
||||
context,
|
||||
title: appLocalizations.attachmentReminderModalTitle,
|
||||
|
||||
Reference in New Issue
Block a user