From 2cfb0ba77b8b2f1bcde99e107c48d317a19b7c46 Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Tue, 24 May 2022 10:30:47 -0400 Subject: [PATCH] Remove double filter for directChannels --- .../categories_list/categories/body/category_body.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/screens/home/channel_list/categories_list/categories/body/category_body.tsx b/app/screens/home/channel_list/categories_list/categories/body/category_body.tsx index 098283957..e5077a2e6 100644 --- a/app/screens/home/channel_list/categories_list/categories/body/category_body.tsx +++ b/app/screens/home/channel_list/categories_list/categories/body/category_body.tsx @@ -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;