diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-02-13 15:19:41 -0500 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2017-02-13 15:19:41 -0500 |
commit | 06f89cea302bc2d634044cbab6c8a5c5b369ff02 (patch) | |
tree | 0ac873005c5c67496b5e0c476d52108888f4cef0 /webapp/routes | |
parent | 892f8f4651234631a4f83648334cf14f6da323b2 (diff) | |
download | chat-06f89cea302bc2d634044cbab6c8a5c5b369ff02.tar.gz chat-06f89cea302bc2d634044cbab6c8a5c5b369ff02.tar.bz2 chat-06f89cea302bc2d634044cbab6c8a5c5b369ff02.zip |
Final fixes for moving unread handling to client (#5392)
Diffstat (limited to 'webapp/routes')
-rw-r--r-- | webapp/routes/route_team.jsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/webapp/routes/route_team.jsx b/webapp/routes/route_team.jsx index fe68324c4..cacb8dd20 100644 --- a/webapp/routes/route_team.jsx +++ b/webapp/routes/route_team.jsx @@ -102,7 +102,12 @@ function preNeedsTeam(nextState, replace, callback) { nextState.location.pathname.indexOf('/pl/') > -1) { loadProfilesAndTeamMembersForDMSidebar(); AsyncClient.getMyTeamsUnread(); - AsyncClient.getMyChannelMembers(); + const teams = TeamStore.getAll(); + for (const id in teams) { + if (teams.hasOwnProperty(id)) { + AsyncClient.getMyChannelMembersForTeam(id); + } + } } const d1 = $.Deferred(); //eslint-disable-line new-cap |