TF-657 Show notification message dialog when email has read receipt requested
This commit is contained in:
@@ -215,6 +215,24 @@ class EmailController extends BaseController with AppLoaderMixin {
|
||||
emailContents.value = success.emailContentsDisplayed;
|
||||
initialEmailContents = success.emailContents;
|
||||
attachments.value = success.attachments;
|
||||
|
||||
if (success.readReceiptRequested) {
|
||||
_handleReadReceipt();
|
||||
}
|
||||
}
|
||||
|
||||
void _handleReadReceipt() {
|
||||
if (currentContext != null) {
|
||||
showConfirmDialogAction(currentContext!,
|
||||
AppLocalizations.of(currentContext!).subTitleReadReceiptRequestNotificationMessage,
|
||||
AppLocalizations.of(currentContext!).yes,
|
||||
onConfirmAction: () => {},
|
||||
showAsBottomSheet: true,
|
||||
title: AppLocalizations.of(currentContext!).titleReadReceiptRequestNotificationMessage,
|
||||
cancelTitle: AppLocalizations.of(currentContext!).no,
|
||||
icon: SvgPicture.asset(imagePaths.icReadReceiptMessage, fit: BoxFit.fill),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
void _resetToOriginalValue() {
|
||||
|
||||
Reference in New Issue
Block a user