From db7540b111f8b9f983adcfc73fd897e5d83c2fef Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Wed, 8 Mar 2017 04:13:16 -0500 Subject: Add sync logic for DMs/GMs when network reconnects (#5676) --- webapp/components/needs_team.jsx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'webapp/components') diff --git a/webapp/components/needs_team.jsx b/webapp/components/needs_team.jsx index fb6029c2b..5cb714ebc 100644 --- a/webapp/components/needs_team.jsx +++ b/webapp/components/needs_team.jsx @@ -14,6 +14,8 @@ import PreferenceStore from 'stores/preference_store.jsx'; import ChannelStore from 'stores/channel_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 Constants from 'utils/constants.jsx'; const TutorialSteps = Constants.TutorialSteps; const Preferences = Constants.Preferences; @@ -94,6 +96,7 @@ export default class NeedsTeam extends React.Component { GlobalActions.viewLoggedIn(); startPeriodicStatusUpdates(); + startPeriodicSync(); // Set up tracking for whether the window is active window.isActive = true; @@ -140,6 +143,7 @@ export default class NeedsTeam extends React.Component { iNoBounce.disable(); } stopPeriodicStatusUpdates(); + stopPeriodicSync(); } render() { -- cgit v1.2.3-1-g7c22