summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webapp/actions/websocket_actions.jsx5
1 files changed, 5 insertions, 0 deletions
diff --git a/webapp/actions/websocket_actions.jsx b/webapp/actions/websocket_actions.jsx
index b61d039af..60ed44fc9 100644
--- a/webapp/actions/websocket_actions.jsx
+++ b/webapp/actions/websocket_actions.jsx
@@ -211,6 +211,11 @@ function handleNewUserEvent(msg) {
return;
}
+ if (msg.data.user_id === UserStore.getCurrentId()) {
+ // We should already have ourselves
+ return;
+ }
+
AsyncClient.getUser(msg.data.user_id);
AsyncClient.getChannelStats();
loadProfilesAndTeamMembersForDMSidebar();