TF-2134 Open composer from mailto uri
(cherry picked from commit 964013fb35ee6a7ab98f7d7c4a1146d87843dd81)
This commit is contained in:
@@ -470,6 +470,16 @@ class ComposerController extends BaseController {
|
||||
toAddressExpandMode.value = ExpandMode.COLLAPSE;
|
||||
_updateStatusEmailSendButton();
|
||||
break;
|
||||
case EmailActionType.composeFromMailtoURL:
|
||||
if (GetUtils.isEmail(arguments.uri ?? '')) {
|
||||
listToEmailAddress.add(EmailAddress(null, arguments.uri));
|
||||
} else {
|
||||
listToEmailAddress.add(EmailAddress(null, 'invalid'));
|
||||
}
|
||||
isInitialRecipient.value = true;
|
||||
toAddressExpandMode.value = ExpandMode.COLLAPSE;
|
||||
_updateStatusEmailSendButton();
|
||||
break;
|
||||
case EmailActionType.reply:
|
||||
case EmailActionType.replyAll:
|
||||
_initEmailAddress(
|
||||
|
||||
Reference in New Issue
Block a user