TF-2134 Open composer from mailto uri
(cherry picked from commit 964013fb35ee6a7ab98f7d7c4a1146d87843dd81)
This commit is contained in:
@@ -15,6 +15,7 @@ class ComposerArguments extends RouterArguments {
|
||||
final List<Attachment>? attachments;
|
||||
final Role? mailboxRole;
|
||||
final SendingEmail? sendingEmail;
|
||||
final String? uri;
|
||||
|
||||
ComposerArguments({
|
||||
this.emailActionType = EmailActionType.compose,
|
||||
@@ -24,7 +25,8 @@ class ComposerArguments extends RouterArguments {
|
||||
this.mailboxRole,
|
||||
this.emailAddress,
|
||||
this.listSharedMediaFile,
|
||||
this.sendingEmail
|
||||
this.sendingEmail,
|
||||
this.uri,
|
||||
});
|
||||
|
||||
factory ComposerArguments.fromSendingEmail(SendingEmail sendingEmail) =>
|
||||
@@ -51,6 +53,12 @@ class ComposerArguments extends RouterArguments {
|
||||
emailAddress: emailAddress
|
||||
);
|
||||
|
||||
factory ComposerArguments.fromMailtoURL(String? uri) =>
|
||||
ComposerArguments(
|
||||
emailActionType: EmailActionType.composeFromMailtoURL,
|
||||
uri: uri
|
||||
);
|
||||
|
||||
factory ComposerArguments.editDraftEmail(PresentationEmail presentationEmail) =>
|
||||
ComposerArguments(
|
||||
emailActionType: EmailActionType.editDraft,
|
||||
@@ -114,6 +122,7 @@ class ComposerArguments extends RouterArguments {
|
||||
mailboxRole,
|
||||
emailAddress,
|
||||
listSharedMediaFile,
|
||||
sendingEmail
|
||||
sendingEmail,
|
||||
uri,
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user