fix collapse categories dependencies and reset list on team change

This commit is contained in:
Elias Nahum 2022-03-23 11:14:57 -03:00
parent ddd5538f23
commit 292d72dc79
No known key found for this signature in database
GPG key ID: E038DB71E0B61702
2 changed files with 2 additions and 1 deletions

View file

@ -33,7 +33,7 @@ const CategoryBody = ({currentChannelId, sortedIds, category, limit}: Props) =>
collapsed={category.collapsed}
/>
);
}, [currentChannelId]);
}, [currentChannelId, category.collapsed]);
return (
<FlatList

View file

@ -94,6 +94,7 @@ const ChannelListScreen = (props: ChannelProps) => {
teamsCount={props.teamsCount}
/>
<ChannelList
key={props.currentTeamId}
iconPad={canAddOtherServers && props.teamsCount <= 1}
isTablet={isTablet}
teamsCount={props.teamsCount}