Small change based on comments of #355

This commit is contained in:
the-djmaze 2022-11-26 10:42:39 +01:00
parent de7d1a82c3
commit a085bbb51d

View file

@ -942,7 +942,7 @@ export class ComposePopupView extends AbstractViewPopup {
this.editor(editor => {
encrypted || editor.setHtml(sText);
if (encrypted || isPlainEditor() || !message.isHtml()) {
if (encrypted || isPlainEditor()) {
editor.modePlain();
}
encrypted && editor.setPlain(sText);