summaryrefslogtreecommitdiffstats
path: root/web/react/stores
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-11-12 12:13:26 -0500
committerJoramWilander <jwawilander@gmail.com>2015-11-12 12:13:26 -0500
commit83d34dcc6c5964ed4dfc4759fe4c9683606ab7fa (patch)
tree5fde3c70c4f9d5f069dc151b629ecaaf2cbb2d0c /web/react/stores
parent13a251a5ee940383e5a026284275b1f31fb476df (diff)
downloadchat-83d34dcc6c5964ed4dfc4759fe4c9683606ab7fa.tar.gz
chat-83d34dcc6c5964ed4dfc4759fe4c9683606ab7fa.tar.bz2
chat-83d34dcc6c5964ed4dfc4759fe4c9683606ab7fa.zip
Fix profile loading in RHS on refresh
Diffstat (limited to 'web/react/stores')
-rw-r--r--web/react/stores/user_store.jsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/react/stores/user_store.jsx b/web/react/stores/user_store.jsx
index 6b7d671fc..e0ecc37aa 100644
--- a/web/react/stores/user_store.jsx
+++ b/web/react/stores/user_store.jsx
@@ -164,6 +164,10 @@ class UserStoreClass extends EventEmitter {
}
getProfile(userId) {
+ if (userId === this.getCurrentId()) {
+ return this.getCurrentUser();
+ }
+
return this.getProfiles()[userId];
}