support channel language update

This commit is contained in:
jessop 2020-10-15 23:02:34 -04:00 committed by Sean Yesmunt
parent 3f14b93cbc
commit 16c6ba1a24
2 changed files with 2 additions and 10 deletions

6
dist/bundle.es.js vendored
View file

@ -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({

View file

@ -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];