revers to original

This commit is contained in:
Jason Frerich
2022-11-19 07:26:32 -06:00
parent 9c4d9c659b
commit bbee41de31

View File

@@ -127,8 +127,8 @@ export default function CreateDirectMessage({
}, []);
const getProfiles = useCallback(debounce(() => {
setLoading(true);
if (next.current && !loading && !term && mounted.current) {
setLoading(true);
if (restrictDirectMessage) {
fetchProfilesInTeam(serverUrl, currentTeamId, page.current + 1, General.PROFILE_CHUNK_SIZE).then(loadedProfiles);
} else {