Drop mail composer HTML/Plain Forced to prevent confusions like in #355

This commit is contained in:
the-djmaze 2022-04-30 00:43:38 +02:00
parent bde9835d5d
commit 435b590b3e
41 changed files with 9 additions and 90 deletions

View file

@ -124,7 +124,7 @@ const
isPlainEditor = () => {
let type = SettingsUserStore.editorDefaultType();
return EditorDefaultType.Html !== type && EditorDefaultType.HtmlForced !== type;
return EditorDefaultType.Html !== type;
},
/**
@ -1079,8 +1079,8 @@ export class ComposePopupView extends AbstractViewPopup {
encrypted || editor.setHtml(sText);
if (encrypted
|| EditorDefaultType.PlainForced === SettingsUserStore.editorDefaultType()
|| (!message.isHtml() && EditorDefaultType.HtmlForced !== SettingsUserStore.editorDefaultType())
|| EditorDefaultType.Plain === SettingsUserStore.editorDefaultType()
|| !message.isHtml()
) {
editor.modePlain();
}