PLT-4787 Fixed not being able to join a channel through a link after opening the More Channels modal (#4616)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0ef77dff13
Коммит
43c703e216
@@ -29,13 +29,16 @@ function doChannelChange(state, replace, callback) {
|
||||
channel = JSON.parse(state.location.query.fakechannel);
|
||||
} else {
|
||||
channel = ChannelStore.getByName(state.params.channel);
|
||||
if (!channel) {
|
||||
channel = ChannelStore.getMoreByName(state.params.channel);
|
||||
}
|
||||
|
||||
if (!channel) {
|
||||
Client.joinChannelByName(
|
||||
state.params.channel,
|
||||
(data) => {
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECEIVED_CHANNEL,
|
||||
channel: data
|
||||
});
|
||||
|
||||
GlobalActions.emitChannelClickEvent(data);
|
||||
callback();
|
||||
},
|
||||
|
||||
Ссылка в новой задаче
Block a user