This commit is contained in:
the-djmaze 2023-11-17 00:37:21 +01:00
parent 36c8b97cb1
commit 87381e2e4d

View file

@ -321,7 +321,7 @@ export class MessageModel extends AbstractModel {
? this.plain() ? this.plain()
.replace(/-----BEGIN PGP (SIGNED MESSAGE-----(\r?\n[^\r\n]+)+|SIGNATURE-----[\s\S]*)/sg, '') .replace(/-----BEGIN PGP (SIGNED MESSAGE-----(\r?\n[^\r\n]+)+|SIGNATURE-----[\s\S]*)/sg, '')
.trim() .trim()
: htmlToPlain(body.innerHTML) : htmlToPlain(body.innerHTML || msgHtml(this).html)
) )
); );
this.hasImages(false); this.hasImages(false);
@ -331,6 +331,7 @@ export class MessageModel extends AbstractModel {
this.isHtml(html); this.isHtml(html);
return true; return true;
} }
} }
viewHtml() { viewHtml() {