diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index 1fb3cb844..bdd3578e0 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/src/lib/components/layout/Sidebar.svelte @@ -56,7 +56,7 @@ let filteredChatList = []; // Pagination variables - let chatListLoading = false; + let chatListLoading = true; let allChatsLoaded = false; $: filteredChatList = $chats.filter((chat) => { @@ -107,6 +107,7 @@ await pinnedChats.set(await getChatListByTagName(localStorage.token, 'pinned')); await chats.set(await getChatList(localStorage.token, $currentChatPage)); + chatListLoading = false; let touchstart; let touchend; diff --git a/src/lib/stores/index.ts b/src/lib/stores/index.ts index f76d37fcc..48de00d0c 100644 --- a/src/lib/stores/index.ts +++ b/src/lib/stores/index.ts @@ -43,7 +43,7 @@ export const showChangelog = writable(false); export const showCallOverlay = writable(false); export const scrollPaginationEnabled = writable(true); -export const currentChatPage = writable(0); +export const currentChatPage = writable(1); export type Model = OpenAIModel | OllamaModel;