From d4c9123acf7b24b29b766b10c80e35bd1ee388f8 Mon Sep 17 00:00:00 2001
From: Joram Wilander <jwawilander@gmail.com>
Date: Mon, 24 Oct 2016 09:48:04 -0400
Subject: Fix bad use of websocket event when a new user is added (#4309)

---
 webapp/actions/websocket_actions.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

diff --git a/webapp/actions/websocket_actions.jsx b/webapp/actions/websocket_actions.jsx
index 14a150692..eb75d118a 100644
--- a/webapp/actions/websocket_actions.jsx
+++ b/webapp/actions/websocket_actions.jsx
@@ -198,7 +198,7 @@ function handlePostDeleteEvent(msg) {
 }
 
 function handleNewUserEvent(msg) {
-    AsyncClient.getUser(msg.user_id);
+    AsyncClient.getUser(msg.data.user_id);
     AsyncClient.getChannelStats();
     loadProfilesAndTeamMembersForDMSidebar();
 }
-- 
cgit v1.2.3-1-g7c22

