PLT-4596 Stopped trying to get new users when not in a context with a team (#4411)

This commit is contained in:
Harrison Healey
2016-11-01 14:28:37 -04:00
committed by Joram Wilander
parent 6a4d1713e6
commit eaaed77603

View File

@@ -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();