Drop ko.extenders.limitedList

This commit is contained in:
the-djmaze 2022-09-26 11:55:26 +02:00
parent deeb86bd5f
commit d1d820da73
8 changed files with 14 additions and 77 deletions

View file

@ -126,10 +126,7 @@ const
}
},
isPlainEditor = () => {
let type = SettingsUserStore.editorDefaultType();
return EditorDefaultType.Html !== type;
},
isPlainEditor = () => EditorDefaultType.Plain === SettingsUserStore.editorDefaultType(),
/**
* @param {string} prefix
@ -966,10 +963,7 @@ export class ComposePopupView extends AbstractViewPopup {
this.editor(editor => {
encrypted || editor.setHtml(sText);
if (encrypted
|| EditorDefaultType.Plain === SettingsUserStore.editorDefaultType()
|| !message.isHtml()
) {
if (encrypted || this.isPlainEditor() || !message.isHtml()) {
editor.modePlain();
}