This commit is contained in:
the-djmaze 2024-01-12 01:56:12 +01:00
parent 06fdf66748
commit 30ed8dde11
3 changed files with 7 additions and 6 deletions

View file

@ -1187,10 +1187,11 @@ export class ComposePopupView extends AbstractViewPopup {
*/
addMessageAsAttachment(message) {
if (message) {
let temp = message.subject();
temp = '.eml' === temp.slice(-4).toLowerCase() ? temp : temp + '.eml';
const attachment = new ComposeAttachmentModel(message.requestHash, temp, message.size());
const attachment = new ComposeAttachmentModel(
message.requestHash,
message.subject() /*+ '-' + Jua.randomId()*/ + '.eml',
message.size()
);
attachment.fromMessage = true;
attachment.complete(true);
this.addAttachment(attachment);