TF-1472: Fixed popup when sending email should be displayed at the bottom of screen
This commit is contained in:
@@ -750,6 +750,13 @@ class ComposerController extends BaseController {
|
||||
final sentMailboxId = mailboxDashBoardController.mapDefaultMailboxIdByRole[PresentationMailbox.roleSent];
|
||||
final outboxMailboxId = mailboxDashBoardController.outboxMailbox?.id;
|
||||
final userProfile = mailboxDashBoardController.userProfile.value;
|
||||
|
||||
if (kIsWeb) {
|
||||
closeComposerWeb();
|
||||
} else {
|
||||
popBack();
|
||||
}
|
||||
|
||||
if (arguments != null && accountId != null && userProfile != null) {
|
||||
final email = await _generateEmail(context, userProfile, outboxMailboxId: outboxMailboxId);
|
||||
final submissionCreateId = Id(_uuid.v1());
|
||||
@@ -775,12 +782,6 @@ class ComposerController extends BaseController {
|
||||
|
||||
uploadController.clearInlineFileUploaded();
|
||||
}
|
||||
|
||||
if (kIsWeb) {
|
||||
closeComposerWeb();
|
||||
} else {
|
||||
popBack();
|
||||
}
|
||||
}
|
||||
|
||||
void _checkContactPermission() async {
|
||||
|
||||
+3
-1
@@ -260,7 +260,9 @@ class MailboxDashBoardController extends ReloadableController {
|
||||
_appToast.showToastWithIcon(
|
||||
currentOverlayContext!,
|
||||
message: AppLocalizations.of(currentContext!).your_email_being_sent,
|
||||
icon: _imagePaths.icSendToast);
|
||||
icon: _imagePaths.icSendToast,
|
||||
delayTime: const Duration(seconds: 1),
|
||||
);
|
||||
}
|
||||
} else if (success is GetEmailStateToRefreshSuccess) {
|
||||
dispatchEmailUIAction(RefreshChangeEmailAction(success.storedState));
|
||||
|
||||
Reference in New Issue
Block a user