Update SearchModal.svelte

This commit is contained in:
silentoplayz 2025-12-08 23:57:08 -05:00
parent c5f9b89bc0
commit bfe0280eb2

View file

@ -125,7 +125,7 @@
chatList = await getChatList(localStorage.token, page); chatList = await getChatList(localStorage.token, page);
} else { } else {
searchDebounceTimeout = setTimeout(async () => { searchDebounceTimeout = setTimeout(async () => {
chatList = await getChatListBySearchText(localStorage.token, query, page); chatList = await getChatListBySearchText(localStorage.token, query.slice(0, 500), page);
if ((chatList ?? []).length === 0) { if ((chatList ?? []).length === 0) {
allChatsLoaded = true; allChatsLoaded = true;