Adding getChannels call for when channel is deleted and your in it (#2851)
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
a169a8e882
Коммит
8125f3ca36
@@ -244,9 +244,8 @@ function handleChannelDeletedEvent(msg) {
|
|||||||
if (ChannelStore.getCurrentId() === msg.channel_id) {
|
if (ChannelStore.getCurrentId() === msg.channel_id) {
|
||||||
const teamUrl = TeamStore.getCurrentTeamRelativeUrl();
|
const teamUrl = TeamStore.getCurrentTeamRelativeUrl();
|
||||||
browserHistory.push(teamUrl + '/channels/' + Constants.DEFAULT_CHANNEL);
|
browserHistory.push(teamUrl + '/channels/' + Constants.DEFAULT_CHANNEL);
|
||||||
} else {
|
|
||||||
AsyncClient.getChannels();
|
|
||||||
}
|
}
|
||||||
|
AsyncClient.getChannels();
|
||||||
}
|
}
|
||||||
|
|
||||||
function handlePreferenceChangedEvent(msg) {
|
function handlePreferenceChangedEvent(msg) {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user