This commit is contained in:
Timothy Jaeryang Baek committed 2026-03-21 18:10:01 -05:00
1 parent bb3526f4e4
commit 5b026b2a3e
5 files changed
+22 -6

No files matched your search

+2 -6
View File
@@ -2632,12 +2632,8 @@
currentChatPage.set(1);
initNewChat();
await goto('/');
getChatList(localStorage.token, $currentChatPage).then((chats) => {
chats.set(chats);
});
getPinnedChatList(localStorage.token).then((pinnedChats) => {
pinnedChats.set(pinnedChats);
});
chats.set(await getChatList(localStorage.token, $currentChatPage));
pinnedChats.set(await getPinnedChatList(localStorage.token));
toast.success($i18n.t('Chat archived.'));
} catch (error) {
console.error('Error archiving chat:', error);