MM-54260: In Browse Channel Modal fix member count on private channels and when there is only 1 member in the channel (#24452)

Этот коммит содержится в:
Sinan Sonmez (Chaush)
2023-09-09 11:17:06 +02:00
коммит произвёл GitHub
родитель 060a63a3ed
Коммит 71fb10ae7a
2 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@@ -116,6 +116,7 @@ export default class BrowseChannels extends React.PureComponent<Props, State> {
return result.data ? result.data.map((channel) => channel.id) : [];
},
);
this.props.privateChannels.forEach((channel) => channelIDsForMemberCount.push(channel.id));
if (channelIDsForMemberCount.length > 0) {
this.props.actions.getChannelsMemberCount(channelIDsForMemberCount);
}