PLT-4233 When internet reconnects, reconnect websocket and grab latest posts, etc. (#4500)

* When internet reconnects, reconnect websocket and grab latest posts, etc.

* Rename internet connection variable
Этот коммит содержится в:
Joram Wilander
2016-11-29 10:37:59 -05:00
коммит произвёл enahum
родитель 58215e573f
Коммит 557aa68636
4 изменённых файлов: 30 добавлений и 6 удалений

Просмотреть файл

@@ -7,6 +7,7 @@ import {browserHistory} from 'react-router/es6';
import TeamStore from 'stores/team_store.jsx';
import * as GlobalActions from 'actions/global_actions.jsx';
import {loadStatusesForChannelAndSidebar} from 'actions/status_actions.jsx';
import AppDispatcher from 'dispatcher/app_dispatcher.jsx';
import Constants from 'utils/constants.jsx';
const ActionTypes = Constants.ActionTypes;
@@ -85,6 +86,8 @@ function preNeedsTeam(nextState, replace, callback) {
channels: data
});
loadStatusesForChannelAndSidebar();
d1.resolve();
},
(err) => {