Bugfix: OpenPGP decrypted attachments friendlySize not a function #89

This commit is contained in:
the-djmaze 2023-02-14 11:37:08 +01:00
parent e2391d1ad2
commit 1f86b73414

View file

@ -33,7 +33,7 @@ export function MimeToMessage(data, message)
attachment.fileNameExt = attachment.fileName.replace(/^.+(\.[a-z]+)$/, '$1');
attachment.fileType = FileInfo.getType('', type.value);
attachment.url = part.dataUrl;
attachment.friendlySize = FileInfo.friendlySize(part.body.length);
attachment.estimatedSize = part.body.length;
/*
attachment.isThumbnail = false;
attachment.contentLocation = '';