diff --git a/src/lib/components/layout/SearchModal.svelte b/src/lib/components/layout/SearchModal.svelte index b0fe914912..e66281e1ed 100644 --- a/src/lib/components/layout/SearchModal.svelte +++ b/src/lib/components/layout/SearchModal.svelte @@ -125,7 +125,7 @@ chatList = await getChatList(localStorage.token, page); } else { searchDebounceTimeout = setTimeout(async () => { - chatList = await getChatListBySearchText(localStorage.token, query, page); + chatList = await getChatListBySearchText(localStorage.token, query.slice(0, 500), page); if ((chatList ?? []).length === 0) { allChatsLoaded = true;