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
Этот коммит содержится в:
коммит произвёл
enahum
родитель
58215e573f
Коммит
557aa68636
@@ -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) => {
|
||||
|
||||
Ссылка в новой задаче
Block a user