From 16c6ba1a249476889bd8d3888b7b920a5943c421 Mon Sep 17 00:00:00 2001 From: jessop Date: Thu, 15 Oct 2020 23:02:34 -0400 Subject: [PATCH] support channel language update --- dist/bundle.es.js | 6 +----- src/redux/actions/claims.js | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index c763a48..1a21407 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -3510,7 +3510,7 @@ function doUpdateChannel(params, cb) { email: params.email, tags: [], replace: true, - languages: [], + languages: params.languages || [], locations: [], blocking: true }; @@ -3525,10 +3525,6 @@ function doUpdateChannel(params, cb) { updateParams.locations = channelClaim.value.locations; } - if (channelClaim && channelClaim.value && channelClaim.value.languages) { - updateParams.languages = channelClaim.value.languages; - } - return lbryProxy.channel_update(updateParams).then(result => { const channelClaim = result.outputs[0]; dispatch({ diff --git a/src/redux/actions/claims.js b/src/redux/actions/claims.js index d74cb32..72286fb 100644 --- a/src/redux/actions/claims.js +++ b/src/redux/actions/claims.js @@ -441,7 +441,7 @@ export function doUpdateChannel(params: any, cb: any) { email: params.email, tags: [], replace: true, - languages: [], + languages: params.languages || [], locations: [], blocking: true, }; @@ -456,10 +456,6 @@ export function doUpdateChannel(params: any, cb: any) { updateParams.locations = channelClaim.value.locations; } - if (channelClaim && channelClaim.value && channelClaim.value.languages) { - updateParams.languages = channelClaim.value.languages; - } - return Lbry.channel_update(updateParams) .then((result: ChannelUpdateResponse) => { const channelClaim = result.outputs[0];