Allow saving draft with empty body #1052

This commit is contained in:
the-djmaze 2023-04-04 12:22:51 +02:00
parent af9b778f63
commit b0dda8d3ae

View file

@ -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) {