Fix convert to private (#6562)

This commit is contained in:
Daniel Espino García
2022-08-11 16:18:14 +02:00
committed by GitHub
parent 5004baf9c6
commit 2576e3fd16

View File

@@ -112,12 +112,7 @@ const ClientChannels = (superclass: any) => class extends superclass {
};
convertChannelToPrivate = async (channelId: string) => {
this.analytics.trackAPI('api_channels_convert_to_private', {channel_id: channelId});
return this.doFetch(
`${this.getChannelRoute(channelId)}/convert`,
{method: 'post'},
);
this.updateChannelPrivacy(channelId, 'P');
};
updateChannelPrivacy = async (channelId: string, privacy: any) => {