diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index 9a78274bb..1f0f3bf79 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/src/lib/components/layout/Sidebar.svelte @@ -49,6 +49,9 @@ import AddFilesPlaceholder from '../AddFilesPlaceholder.svelte'; import { select } from 'd3-selection'; import SearchInput from './Sidebar/SearchInput.svelte'; + import ChevronDown from '../icons/ChevronDown.svelte'; + import ChevronUp from '../icons/ChevronUp.svelte'; + import ChevronRight from '../icons/ChevronRight.svelte'; const BREAKPOINT = 768; @@ -65,6 +68,8 @@ let selectedTagName = null; + let showPinnedChat = true; + // Pagination variables let chatListLoading = false; let allChatsLoaded = false; @@ -257,6 +262,8 @@ }; onMount(async () => { + showPinnedChat = localStorage?.showPinnedChat ? localStorage.showPinnedChat === 'true' : true; + mobile.subscribe((e) => { if ($showSidebar && e) { showSidebar.set(false); @@ -476,11 +483,7 @@ {/if} -