This commit is contained in:
Timothy J. Baek 2024-10-19 20:47:30 -07:00
parent d795940ced
commit 8330fcdb5c

View File

@ -151,7 +151,12 @@
currentChatPage.set(1);
allChatsLoaded = false;
await chats.set(await getChatList(localStorage.token, $currentChatPage));
if (search) {
await chats.set(await getChatListBySearchText(localStorage.token, search, $currentChatPage));
} else {
await chats.set(await getChatList(localStorage.token, $currentChatPage));
}
// Enable pagination
scrollPaginationEnabled.set(true);