This commit is contained in:
Timothy J. Baek
2024-08-04 17:04:15 +02:00
parent a084938d9c
commit 49677e9c9d
7 changed files with 17 additions and 15 deletions

View File

@@ -41,7 +41,7 @@
title: _title
});
currentChatPage.set(0);
currentChatPage.set(1);
await chats.set(await getChatList(localStorage.token, $currentChatPage));
await pinnedChats.set(await getChatListByTagName(localStorage.token, 'pinned'));
}
@@ -56,7 +56,7 @@
if (res) {
goto(`/c/${res.id}`);
currentChatPage.set(0);
currentChatPage.set(1);
await chats.set(await getChatList(localStorage.token, $currentChatPage));
await pinnedChats.set(await getChatListByTagName(localStorage.token, 'pinned'));
}
@@ -65,7 +65,7 @@
const archiveChatHandler = async (id) => {
await archiveChatById(localStorage.token, id);
currentChatPage.set(0);
currentChatPage.set(1);
await chats.set(await getChatList(localStorage.token, $currentChatPage));
await pinnedChats.set(await getChatListByTagName(localStorage.token, 'pinned'));
};