diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-03-24 16:46:39 -0400 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2017-03-24 13:46:39 -0700 |
commit | 4dc03613b41b1e8a3cad77582fd4d80c6bf401f4 (patch) | |
tree | 25ae9593a765fe467f47de9c7d02598dc00a828f /webapp/components | |
parent | 69fb47b88bc8d97c4797fa72e60416f8fb658e20 (diff) | |
download | chat-4dc03613b41b1e8a3cad77582fd4d80c6bf401f4.tar.gz chat-4dc03613b41b1e8a3cad77582fd4d80c6bf401f4.tar.bz2 chat-4dc03613b41b1e8a3cad77582fd4d80c6bf401f4.zip |
Check if LHS DM list needs updating on channel switch and channel members fetch (#5861)
Diffstat (limited to 'webapp/components')
-rw-r--r-- | webapp/components/needs_team.jsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/webapp/components/needs_team.jsx b/webapp/components/needs_team.jsx index 11e75bfb7..9ce4ed882 100644 --- a/webapp/components/needs_team.jsx +++ b/webapp/components/needs_team.jsx @@ -16,6 +16,7 @@ import PostStore from 'stores/post_store.jsx'; import * as GlobalActions from 'actions/global_actions.jsx'; import {startPeriodicStatusUpdates, stopPeriodicStatusUpdates} from 'actions/status_actions.jsx'; import {startPeriodicSync, stopPeriodicSync} from 'actions/websocket_actions.jsx'; +import {loadProfilesForSidebar} from 'actions/user_actions.jsx'; import Constants from 'utils/constants.jsx'; const TutorialSteps = Constants.TutorialSteps; @@ -108,7 +109,7 @@ export default class NeedsTeam extends React.Component { window.isActive = true; if (new Date().getTime() - this.blurTime > UNREAD_CHECK_TIME_MILLISECONDS) { - AsyncClient.getMyChannelMembers(); + AsyncClient.getMyChannelMembers().then(loadProfilesForSidebar); } }); |