refac
This commit is contained in:
@@ -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