From eaaed77603f85e66e6afcca9311164ca3317213f Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Tue, 1 Nov 2016 14:28:37 -0400 Subject: PLT-4596 Stopped trying to get new users when not in a context with a team (#4411) --- webapp/actions/websocket_actions.jsx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'webapp') diff --git a/webapp/actions/websocket_actions.jsx b/webapp/actions/websocket_actions.jsx index 55df5105f..c7010dcd4 100644 --- a/webapp/actions/websocket_actions.jsx +++ b/webapp/actions/websocket_actions.jsx @@ -199,6 +199,11 @@ function handlePostDeleteEvent(msg) { } function handleNewUserEvent(msg) { + if (TeamStore.getCurrentId() === '') { + // Any new users will be loaded when we switch into a context with a team + return; + } + AsyncClient.getUser(msg.data.user_id); AsyncClient.getChannelStats(); loadProfilesAndTeamMembersForDMSidebar(); -- cgit v1.2.3-1-g7c22