From 5729d7ad810020a09563238ca9cba48943d6b5d9 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 8 Oct 2026 18:13:35 +0400 Subject: [PATCH] refac --- src/lib/components/chat/Chat.svelte | 1 + src/lib/components/layout/Sidebar/RecursiveFolder.svelte | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index d68db45538..e69924f807 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -4590,6 +4590,7 @@ initNewChat(); await goto('/'); await refreshChatList(localStorage.token, { refreshPinned: true }); + await refreshFolderChatLists(); allTags.set(await getAllTags(localStorage.token)); toast.success($i18n.t('Chat deleted.')); } diff --git a/src/lib/components/layout/Sidebar/RecursiveFolder.svelte b/src/lib/components/layout/Sidebar/RecursiveFolder.svelte index cec72455c9..fcb32f4dc2 100644 --- a/src/lib/components/layout/Sidebar/RecursiveFolder.svelte +++ b/src/lib/components/layout/Sidebar/RecursiveFolder.svelte @@ -543,6 +543,9 @@ await tick(); if (open) { + if (!append) { + pendingUpsertChats = []; + } // Always use getSharedFolderChats so owners also see chats // created by users who have write access to this folder. const nextPage = append ? chatsPage + 1 : 1;