This commit is contained in:
the-djmaze 2023-02-17 09:11:48 +01:00
parent 3b7deb1328
commit 6e6ed0eab3

View file

@ -1404,7 +1404,10 @@ export class ComposePopupView extends AbstractViewPopup {
encrypt = this.pgpEncrypt() && this.canPgpEncrypt(), encrypt = this.pgpEncrypt() && this.canPgpEncrypt(),
isHtml = this.oEditor.isHtml(); isHtml = this.oEditor.isHtml();
let Text = this.oEditor.getData(); let Text = this.oEditor.getData().trim();
if (!Text.length) {
throw 'Message body is empty';
}
if (isHtml) { if (isHtml) {
let l; let l;
do { do {