diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-03-23 13:03:12 -0400 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-03-23 13:03:12 -0400 |
commit | 1f46cca65ca0669c1fc1a6fec5113f835a1a3023 (patch) | |
tree | 5d2563bb88d8f71cbd8a50b921358378c04a2c5e /webapp/root.jsx | |
parent | 6568e15023c009c96a46f022236f5fd4415445c0 (diff) | |
download | chat-1f46cca65ca0669c1fc1a6fec5113f835a1a3023.tar.gz chat-1f46cca65ca0669c1fc1a6fec5113f835a1a3023.tar.bz2 chat-1f46cca65ca0669c1fc1a6fec5113f835a1a3023.zip |
Changed PreferenceStore to store data in memory
Diffstat (limited to 'webapp/root.jsx')
-rw-r--r-- | webapp/root.jsx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/webapp/root.jsx b/webapp/root.jsx index b0a6ae1ac..7462813b7 100644 --- a/webapp/root.jsx +++ b/webapp/root.jsx @@ -138,11 +138,7 @@ function preRenderSetup(callwhendone) { function preLoggedIn(nextState, replace, callback) { const d1 = Client.getAllPreferences( (data) => { - if (!data) { - return; - } - - PreferenceStore.setPreferences(data); + PreferenceStore.setPreferencesFromServer(data); }, (err) => { AsyncClient.dispatchError(err, 'getAllPreferences'); @@ -198,6 +194,7 @@ function onLoggedOut(nextState) { BrowserStore.signalLogout(); BrowserStore.clear(); ErrorStore.clearLastError(); + PreferenceStore.clear(); }, () => { browserHistory.push('/' + teamName + '/login'); |