Skip to content

Commit 78dbad5

Browse files
committed
refac
1 parent 5b026b2 commit 78dbad5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/components/layout/Sidebar/ChatItem.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@
157157
await archiveChatById(localStorage.token, id);
158158
159159
if ($chatId === id) {
160+
await goto('/');
160161
chatId.set('');
161-
window.history.replaceState({}, '', '/');
162162
}
163163
164164
dispatch('change');

0 commit comments

Comments
 (0)