mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-25 00:28:20 -05:00
iOS: show unescaped filename in email
Displayed name in the email was using the escaped filename rather than the filename passed as the name parameter.
This commit is contained in:
parent
e035b0f86e
commit
72b807726b
2 changed files with 28 additions and 29 deletions
|
@ -215,7 +215,7 @@ NSMutableDictionary *mediastrings;
|
|||
|
||||
if (ok) {
|
||||
if (shareType == 0) {
|
||||
[HTML showShareEmail:url withName:fullname withSubject:emailSubject withBody:emailBody];
|
||||
[HTML showShareEmail:url withName:filename withSubject:emailSubject withBody:emailBody];
|
||||
} else {
|
||||
[HTML showShareAirdrop:url];
|
||||
}
|
||||
|
@ -333,4 +333,3 @@ NSMutableDictionary *mediastrings;
|
|||
}
|
||||
|
||||
@end
|
||||
|
||||
|
|
|
@ -329,7 +329,7 @@ JSContext *js;
|
|||
MFMailComposeViewController *mailComposeViewController = [[MFMailComposeViewController alloc] init];
|
||||
mailComposeViewController.mailComposeDelegate = self;
|
||||
|
||||
NSString* filename = [[projectURL absoluteString] lastPathComponent];
|
||||
NSString* filename = name;
|
||||
|
||||
[mailComposeViewController setSubject: subject];
|
||||
[mailComposeViewController setMessageBody:body isHTML:YES];
|
||||
|
|
Loading…
Reference in a new issue