summaryrefslogtreecommitdiffstats
path: root/webapp/root.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-05-11 11:53:04 -0400
committerChristopher Speller <crspeller@gmail.com>2016-05-11 11:53:04 -0400
commite1388877ad95c55915e58eb6ce7c6a885b6e00bf (patch)
tree0e43075690d1a6d968d5722342ae9e07d9324565 /webapp/root.jsx
parent45b22f312d3f57c63f86ffdbbb50c29108099993 (diff)
parenta574397a7256bed7738f499019f97ab468b5161d (diff)
downloadchat-e1388877ad95c55915e58eb6ce7c6a885b6e00bf.tar.gz
chat-e1388877ad95c55915e58eb6ce7c6a885b6e00bf.tar.bz2
chat-e1388877ad95c55915e58eb6ce7c6a885b6e00bf.zip
Merge branch 'release-3.0'
Diffstat (limited to 'webapp/root.jsx')
-rw-r--r--webapp/root.jsx7
1 files changed, 7 insertions, 0 deletions
diff --git a/webapp/root.jsx b/webapp/root.jsx
index 3f1edda38..2b54c2174 100644
--- a/webapp/root.jsx
+++ b/webapp/root.jsx
@@ -132,6 +132,7 @@ function preNeedsTeam(nextState, replace, callback) {
// for the current url.
var teamName = Utils.getTeamNameFromUrl();
var team = TeamStore.getByName(teamName);
+ const oldTeamId = TeamStore.getCurrentId();
if (!team) {
browserHistory.push('/');
@@ -143,6 +144,12 @@ function preNeedsTeam(nextState, replace, callback) {
TeamStore.saveMyTeam(team);
TeamStore.emitChange();
+ // If the old team id is null then we will already have the direct
+ // profiles from initial load
+ if (oldTeamId != null) {
+ AsyncClient.getDirectProfiles();
+ }
+
var d1 = $.Deferred(); //eslint-disable-line new-cap
var d2 = $.Deferred(); //eslint-disable-line new-cap