From 6e6ed0eab3c047a6be3db0d993516f8585bd934b Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Fri, 17 Feb 2023 09:11:48 +0100 Subject: [PATCH] Resolve #974 --- dev/View/Popup/Compose.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dev/View/Popup/Compose.js b/dev/View/Popup/Compose.js index 4a8850896..b3df92418 100644 --- a/dev/View/Popup/Compose.js +++ b/dev/View/Popup/Compose.js @@ -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 {