refac
This commit is contained in:
1 parent
93a91a678a
commit
4797799400
1 file changed
+6
@@ -97,6 +97,12 @@
|
|||||||
} else {
|
} else {
|
||||||
searchDebounceTimeout = setTimeout(async () => {
|
searchDebounceTimeout = setTimeout(async () => {
|
||||||
chatList = await getChatListBySearchText(localStorage.token, query, page);
|
chatList = await getChatListBySearchText(localStorage.token, query, page);
|
||||||
|
|
||||||
|
if ((chatList ?? []).length === 0) {
|
||||||
|
allChatsLoaded = true;
|
||||||
|
} else {
|
||||||
|
allChatsLoaded = false;
|
||||||
|
}
|
||||||
}, 500);
|
}, 500);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user