summaryrefslogtreecommitdiffstats
path: root/webapp/root.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-03-23 13:03:12 -0400
committerHarrison Healey <harrisonmhealey@gmail.com>2016-03-23 13:03:12 -0400
commit1f46cca65ca0669c1fc1a6fec5113f835a1a3023 (patch)
tree5d2563bb88d8f71cbd8a50b921358378c04a2c5e /webapp/root.jsx
parent6568e15023c009c96a46f022236f5fd4415445c0 (diff)
downloadchat-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.jsx7
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');