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

@@ -209,7 +209,7 @@
}
allChatsLoaded = false;
currentChatPage.set(0);
currentChatPage.set(1);
await chats.set(await getChatList(localStorage.token, $currentChatPage));
await pinnedChats.set(await getChatListByTagName(localStorage.token, 'pinned'));
@@ -453,6 +453,7 @@
on:click={async () => {
enablePagination();
allChatsLoaded = false;
await chats.set(await getChatList(localStorage.token, $currentChatPage));
}}
>
{$i18n.t('all')}
@@ -469,6 +470,7 @@
// if the tag we deleted is no longer a valid tag, return to main chat list view
enablePagination();
allChatsLoaded = false;
chatIds = await getChatList(localStorage.token, $currentChatPage);
}
await chats.set(chatIds);
}}