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(),
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) {
let l;
do {