summaryrefslogtreecommitdiffstats
path: root/webapp/routes
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-04-03 13:36:47 -0400
committerCorey Hulen <corey@hulen.com>2017-04-03 10:36:47 -0700
commit68bb5a2ec85a6d34726a137bad65157d0ff65247 (patch)
treeecad4a9c6601eb9651678668b3e3c3bfe51ed8db /webapp/routes
parent997eacd4b635a2a7a86eadeeb2b229f153c52626 (diff)
downloadchat-68bb5a2ec85a6d34726a137bad65157d0ff65247.tar.gz
chat-68bb5a2ec85a6d34726a137bad65157d0ff65247.tar.bz2
chat-68bb5a2ec85a6d34726a137bad65157d0ff65247.zip
Replace initial load of user's channel members for all teams with a lazy load (#5942)
Diffstat (limited to 'webapp/routes')
-rw-r--r--webapp/routes/route_team.jsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/webapp/routes/route_team.jsx b/webapp/routes/route_team.jsx
index 768d84dba..ff865989a 100644
--- a/webapp/routes/route_team.jsx
+++ b/webapp/routes/route_team.jsx
@@ -108,8 +108,7 @@ function preNeedsTeam(nextState, replace, callback) {
if (nextState.location.pathname.indexOf('/channels/') > -1 ||
nextState.location.pathname.indexOf('/pl/') > -1) {
AsyncClient.getMyTeamsUnread();
- const members = TeamStore.getMyTeamMembers();
- members.forEach((m) => AsyncClient.getMyChannelMembersForTeam(m.team_id));
+ AsyncClient.getMyChannelMembersForTeam(team.id);
}
const d1 = $.Deferred(); //eslint-disable-line new-cap