feat(client/text): provide a way to disable slash commands

This commit is contained in:
Elian Doran
2025-09-23 20:18:02 +03:00
parent 71ce9c459e
commit 4cc55b02ab
6 changed files with 11 additions and 1 deletions

View File

@@ -91,6 +91,7 @@ const ALLOWED_OPTIONS = new Set<OptionNames>([
"textNoteEditorMultilineToolbar",
"textNoteEmojiCompletionEnabled",
"textNoteCompletionEnabled",
"textNoteSlashCommandsEnabled",
"layoutOrientation",
"backgroundEffects",
"allowedHtmlTags",

View File

@@ -184,6 +184,7 @@ const defaultOptions: DefaultOption[] = [
{ name: "textNoteEditorMultilineToolbar", value: "false", isSynced: true },
{ name: "textNoteEmojiCompletionEnabled", value: "true", isSynced: true },
{ name: "textNoteCompletionEnabled", value: "true", isSynced: true },
{ name: "textNoteSlashCommandsEnabled", value: "true", isSynced: true },
// HTML import configuration
{ name: "layoutOrientation", value: "vertical", isSynced: false },