diff --git a/src/client/rest/RESTMethods.js b/src/client/rest/RESTMethods.js index 5468030dc..da5aca3ab 100644 --- a/src/client/rest/RESTMethods.js +++ b/src/client/rest/RESTMethods.js @@ -342,7 +342,7 @@ class RESTMethods { data.topic = _data.topic || channel.topic; data.position = _data.position || channel.position; data.bitrate = _data.bitrate || (channel.bitrate ? channel.bitrate * 1000 : undefined); - data.user_limit = _data.userLimit || channel.userLimit; + data.user_limit = typeof _data.userLimit !== 'undefined' ? _data.userLimit : channel.userLimit; data.parent_id = _data.parent || (channel.parent ? channel.parent.id : undefined); return this.rest.makeRequest('patch', Endpoints.Channel(channel), true, data, undefined, reason).then(newData => this.client.actions.ChannelUpdate.handle(newData).updated