diff --git a/src/stores/settings.ts b/src/stores/settings.ts index 493e4fd6473..a4bff204db9 100644 --- a/src/stores/settings.ts +++ b/src/stores/settings.ts @@ -23,6 +23,8 @@ type PRIVACY_KEYS = typeof PRIVACY[keyof typeof PRIVACY] type LIST_STYLE_OPTIONS = 'two-lines' | 'compact' type CHAT_STYLE_OPTIONS = 'split' | 'unified' +const supportChatStyle = getTalkConfig('local', 'chat', 'style') !== undefined + /** * Store for shared items shown in RightSidebar */ @@ -33,7 +35,7 @@ export const useSettingsStore = defineStore('settings', () => { const startWithoutMedia = ref(getTalkConfig('local', 'call', 'start-without-media')) const blurVirtualBackgroundEnabled = ref(getTalkConfig('local', 'call', 'blur-virtual-background')) const conversationsListStyle = ref(getTalkConfig('local', 'conversations', 'list-style')) - const chatStyle = ref(getTalkConfig('local', 'chat', 'style') ?? 'split') + const chatStyle = ref(supportChatStyle ? (getTalkConfig('local', 'chat', 'style') ?? 'split') : 'unified') const attachmentFolder = ref(loadState('spreed', 'attachment_folder', '')) const attachmentFolderFreeSpace = ref(loadState('spreed', 'attachment_folder_free_space', 0))