Merge pull request #2625 from mattermost/plt-2502

PLT-2502 Fxing some channel changing issues
This commit is contained in:
Joram Wilander
2016-04-04 12:24:12 -04:00
11 changed files with 90 additions and 45 deletions

View File

@@ -180,6 +180,12 @@ function doChannelChange(state) {
channel = JSON.parse(state.location.query.fakechannel);
} else {
channel = ChannelStore.getByName(state.params.channel);
if (!channel) {
channel = ChannelStore.getMoreByName(state.params.channel);
}
if (!channel) {
console.error('Unable to get channel to change to.'); //eslint-disable-line no-console
}
}
GlobalActions.emitChannelClickEvent(channel);
}