diff --git a/src/routes/chat/+page.svelte b/src/routes/chat/+page.svelte index f39ce1c89..ab6f31ecc 100644 --- a/src/routes/chat/+page.svelte +++ b/src/routes/chat/+page.svelte @@ -50,8 +50,12 @@ let contentAsideOpen = false let showBrowseFilesModal = false $: clipboardWrite = writable(Permission.UNDEFINED) + let sidebarOpen = get(UIStore.state.sidebarOpen) + + UIStore.state.sidebarOpen.subscribe(open => { + sidebarOpen = open + }) - $: sidebarOpen = UIStore.state.sidebarOpen $: activeChat = Store.state.activeChat $: isFavorite = derived(Store.state.favorites, favs => favs.some(f => f.id === $activeChat.id)) $: conversation = ConversationStore.getConversation($activeChat) @@ -581,7 +585,7 @@ {/if} - search_component.filter_chat()} on:enter={() => search_component.select_first()}> + search_component.filter_chat()} on:enter={() => search_component.select_first()}>