fix(mail(js)): use message subject as filename of .eml

pull/301/head
Francis Lachapelle 2021-08-23 09:57:15 -04:00
parent 05ad7a8d6d
commit 792d96b361
1 changed files with 4 additions and 1 deletions

View File

@ -915,7 +915,10 @@
* @returns a promise of the HTTP operation
*/
Message.prototype.download = function() {
return Message.$$resource.download(this.$absolutePath(), 'export');
var options;
options = { filename: this.subject + '.eml' };
return Message.$$resource.download(this.$absolutePath(), 'export', undefined, options);
};
/**