From 557aa68636ae8b23b33b761d9e9fe0f5b8cf1120 Mon Sep 17 00:00:00 2001
From: Joram Wilander <jwawilander@gmail.com>
Date: Tue, 29 Nov 2016 10:37:59 -0500
Subject: 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
---
 webapp/routes/route_team.jsx | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'webapp/routes/route_team.jsx')

diff --git a/webapp/routes/route_team.jsx b/webapp/routes/route_team.jsx
index 7d4c0c80c..88fab8d45 100644
--- a/webapp/routes/route_team.jsx
+++ b/webapp/routes/route_team.jsx
@@ -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) => {
-- 
cgit v1.2.3-1-g7c22

