Fix cannot send email after close attachment reminder dialog
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user