From 8125f3ca363b76772b0dee18c6ba39cfb9fd6014 Mon Sep 17 00:00:00 2001
From: Christopher Speller <crspeller@gmail.com>
Date: Mon, 2 May 2016 17:15:46 -0400
Subject: Adding getChannels call for when channel is deleted and your in it
 (#2851)

---
 webapp/action_creators/websocket_actions.jsx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'webapp/action_creators/websocket_actions.jsx')

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) {
-- 
cgit v1.2.3-1-g7c22

