summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/react/components/more_channels.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/react/components/more_channels.jsx b/web/react/components/more_channels.jsx
index 5261ed6a7..56366cde4 100644
--- a/web/react/components/more_channels.jsx
+++ b/web/react/components/more_channels.jsx
@@ -45,9 +45,10 @@ module.exports = React.createClass({
},
handleJoin: function(id) {
client.joinChannel(id,
- function() {
+ function(data) {
$(this.refs.modal.getDOMNode()).modal('hide');
asyncClient.getChannel(id);
+ utils.switchChannel(data);
}.bind(this),
function(err) {
this.state.serverError = err.message;