Add sync logic for DMs/GMs when network reconnects (#5676)
Этот коммит содержится в:
коммит произвёл
George Goldberg
родитель
2bea17251e
Коммит
db7540b111
@@ -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() {
|
||||
|
||||
Ссылка в новой задаче
Block a user