summaryrefslogtreecommitdiffstats
path: root/webapp/actions
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-11-01 15:50:34 -0400
committerJoram Wilander <jwawilander@gmail.com>2016-11-01 15:50:34 -0400
commitb0f38f8a84ae0b7cba43c7d12a19f8f3cb79e9b0 (patch)
tree376a9d7ca30c9c917b6864bcf5c0021635a05f66 /webapp/actions
parent60a43a5b4ff1e2f5b8d67419611b8f62d8b5412d (diff)
downloadchat-b0f38f8a84ae0b7cba43c7d12a19f8f3cb79e9b0.tar.gz
chat-b0f38f8a84ae0b7cba43c7d12a19f8f3cb79e9b0.tar.bz2
chat-b0f38f8a84ae0b7cba43c7d12a19f8f3cb79e9b0.zip
Fixing websocket and team store issues when leaving team (#4412)
Diffstat (limited to 'webapp/actions')
-rw-r--r--webapp/actions/websocket_actions.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/actions/websocket_actions.jsx b/webapp/actions/websocket_actions.jsx
index c7010dcd4..431922b0d 100644
--- a/webapp/actions/websocket_actions.jsx
+++ b/webapp/actions/websocket_actions.jsx
@@ -211,10 +211,10 @@ function handleNewUserEvent(msg) {
function handleLeaveTeamEvent(msg) {
if (UserStore.getCurrentId() === msg.data.user_id) {
- TeamStore.removeMyTeamMember(msg.broadcast.team_id);
+ TeamStore.removeMyTeamMember(msg.data.team_id);
// if they are on the team being removed redirect them to the root
- if (TeamStore.getCurrentId() === msg.broadcast.team_id) {
+ if (TeamStore.getCurrentId() === msg.data.team_id) {
TeamStore.setCurrentId('');
Client.setTeamId('');
browserHistory.push('/');