diff --git a/src/lib/components/layout/Sidebar/ChatItem.svelte b/src/lib/components/layout/Sidebar/ChatItem.svelte index 23b92df271..ac21229b6a 100644 --- a/src/lib/components/layout/Sidebar/ChatItem.svelte +++ b/src/lib/components/layout/Sidebar/ChatItem.svelte @@ -157,8 +157,8 @@ await archiveChatById(localStorage.token, id); if ($chatId === id) { + await goto('/'); chatId.set(''); - window.history.replaceState({}, '', '/'); } dispatch('change');