mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
PLT-4596 Stopped trying to get new users when not in a context with a team (#4411)
This commit is contained in:
committed by
Joram Wilander
parent
6a4d1713e6
commit
eaaed77603
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user