summaryrefslogtreecommitdiffstats
path: root/webapp/actions/websocket_actions.jsx
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2016-08-17 07:17:44 -0800
committerJoram Wilander <jwawilander@gmail.com>2016-08-17 11:17:44 -0400
commiteafc8028314805ded314648e02078cf596760197 (patch)
treea891483de272d1335b02e3aa1e994aece808cc0b /webapp/actions/websocket_actions.jsx
parentdba2deabb06aa5092bc634687294fa5c8cecd8bd (diff)
downloadchat-eafc8028314805ded314648e02078cf596760197.tar.gz
chat-eafc8028314805ded314648e02078cf596760197.tar.bz2
chat-eafc8028314805ded314648e02078cf596760197.zip
PLT-3881 Fix websocket errors after leaving the team (#3815)
Diffstat (limited to 'webapp/actions/websocket_actions.jsx')
-rw-r--r--webapp/actions/websocket_actions.jsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/webapp/actions/websocket_actions.jsx b/webapp/actions/websocket_actions.jsx
index 9150e4111..9548a58dd 100644
--- a/webapp/actions/websocket_actions.jsx
+++ b/webapp/actions/websocket_actions.jsx
@@ -194,6 +194,8 @@ function handleLeaveTeamEvent(msg) {
// if the are on the team begin removed redirect them to the root
if (TeamStore.getCurrentId() === msg.team_id) {
+ TeamStore.setCurrentId('');
+ Client.setTeamId('');
browserHistory.push('/');
}
} else if (TeamStore.getCurrentId() === msg.team_id) {