Remove double filter for directChannels

This commit is contained in:
Elias Nahum 2022-05-24 10:30:47 -04:00
parent 19ecc150b6
commit 2cfb0ba77b
No known key found for this signature in database
GPG key ID: E038DB71E0B61702

View file

@ -63,8 +63,7 @@ const CategoryBody = ({sortedChannels, category, hiddenChannelIds, limit, onChan
}, [category.collapsed]);
useEffect(() => {
const direct = directChannels.filter(isDMorGM);
fetchDirectChannelsInfo(serverUrl, direct);
fetchDirectChannelsInfo(serverUrl, directChannels);
}, [directChannels.length]);
const height = ids.length ? ids.length * 40 : 0;