From 2576e3fd1633702c27c145ef82d8e7198715f9e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Espino=20Garc=C3=ADa?= Date: Thu, 11 Aug 2022 16:18:14 +0200 Subject: [PATCH] Fix convert to private (#6562) --- app/client/rest/channels.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/client/rest/channels.ts b/app/client/rest/channels.ts index 682fb765f..15499a607 100644 --- a/app/client/rest/channels.ts +++ b/app/client/rest/channels.ts @@ -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) => {