forked from Ivasoft/mattermost-mobile
Fix convert to private (#6562)
This commit is contained in:
committed by
GitHub
parent
5004baf9c6
commit
2576e3fd16
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user