This commit is contained in:
Timothy Jaeryang Baek
2026-03-21 18:10:01 -05:00
parent bb3526f4e4
commit 5b026b2a3e
5 changed files with 22 additions and 6 deletions
+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);