mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Merge pull request #2625 from mattermost/plt-2502
PLT-2502 Fxing some channel changing issues
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user