From b0dda8d3ae489e775122560a1d1f33394bb30f1f Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 4 Apr 2023 12:22:51 +0200 Subject: [PATCH] Allow saving draft with empty body #1052 --- dev/View/Popup/Compose.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/View/Popup/Compose.js b/dev/View/Popup/Compose.js index c3d362f07..d1709fe51 100644 --- a/dev/View/Popup/Compose.js +++ b/dev/View/Popup/Compose.js @@ -1398,7 +1398,7 @@ export class ComposePopupView extends AbstractViewPopup { isHtml = this.oEditor.isHtml(); let Text = this.oEditor.getData().trim(); - if (!Text.length) { + if (!draft && !Text.length) { throw i18n('COMPOSE/ERROR_EMPTY_BODY'); } if (isHtml) {