diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index 40de5c66a..014dfcf6d 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/src/lib/components/layout/Sidebar.svelte @@ -82,7 +82,10 @@ }); if (res) { - goto('/'); + if ($chatId === id) { + goto('/'); + } + await chats.set(await getChatList(localStorage.token)); } }; @@ -370,22 +373,22 @@ return title.includes(query) || contentMatches; } }) as chat, i} -