diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-05-02 17:15:46 -0400 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-05-02 14:15:46 -0700 |
commit | 8125f3ca363b76772b0dee18c6ba39cfb9fd6014 (patch) | |
tree | e6e8804e1d3981e293572bb18fdce6810671cbaa | |
parent | a169a8e882fc89154a3b1496a3f033bffaf62665 (diff) | |
download | chat-8125f3ca363b76772b0dee18c6ba39cfb9fd6014.tar.gz chat-8125f3ca363b76772b0dee18c6ba39cfb9fd6014.tar.bz2 chat-8125f3ca363b76772b0dee18c6ba39cfb9fd6014.zip |
Adding getChannels call for when channel is deleted and your in it (#2851)
-rw-r--r-- | webapp/action_creators/websocket_actions.jsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/webapp/action_creators/websocket_actions.jsx b/webapp/action_creators/websocket_actions.jsx index 83a000f6d..0d4c76201 100644 --- a/webapp/action_creators/websocket_actions.jsx +++ b/webapp/action_creators/websocket_actions.jsx @@ -244,9 +244,8 @@ function handleChannelDeletedEvent(msg) { if (ChannelStore.getCurrentId() === msg.channel_id) { const teamUrl = TeamStore.getCurrentTeamRelativeUrl(); browserHistory.push(teamUrl + '/channels/' + Constants.DEFAULT_CHANNEL); - } else { - AsyncClient.getChannels(); } + AsyncClient.getChannels(); } function handlePreferenceChangedEvent(msg) { |