Timothy Jaeryang Baek 2 months ago
parent
commit
4797799400
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/lib/components/layout/SearchModal.svelte

+ 6 - 0
src/lib/components/layout/SearchModal.svelte

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