summaryrefslogtreecommitdiffstats
path: root/webapp/components
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-03-08 04:13:16 -0500
committerGeorge Goldberg <george@gberg.me>2017-03-08 09:13:16 +0000
commitdb7540b111f8b9f983adcfc73fd897e5d83c2fef (patch)
treec26c39b4e7063dda503bd55dd75360c135145ae4 /webapp/components
parent2bea17251ef90ab62381ebecaa97fc41c2c94f99 (diff)
downloadchat-db7540b111f8b9f983adcfc73fd897e5d83c2fef.tar.gz
chat-db7540b111f8b9f983adcfc73fd897e5d83c2fef.tar.bz2
chat-db7540b111f8b9f983adcfc73fd897e5d83c2fef.zip
Add sync logic for DMs/GMs when network reconnects (#5676)
Diffstat (limited to 'webapp/components')
-rw-r--r--webapp/components/needs_team.jsx4
1 files changed, 4 insertions, 0 deletions
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() {