diff options
author | Corey Hulen <corey@hulen.com> | 2015-11-12 10:12:58 -0800 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2015-11-12 10:12:58 -0800 |
commit | 931f4f764cbd18f1f5189e03ece83685e4dc6ffa (patch) | |
tree | c7675c761206d4913786a54b58b8ba6c35c9440f /web/react/stores/user_store.jsx | |
parent | b6049721f9a168b47b5b6b602517719277b56b07 (diff) | |
parent | 83d34dcc6c5964ed4dfc4759fe4c9683606ab7fa (diff) | |
download | chat-931f4f764cbd18f1f5189e03ece83685e4dc6ffa.tar.gz chat-931f4f764cbd18f1f5189e03ece83685e4dc6ffa.tar.bz2 chat-931f4f764cbd18f1f5189e03ece83685e4dc6ffa.zip |
Merge pull request #1412 from mattermost/plt-1089
PLT-1089 Fix profile not loading in RHS on refresh
Diffstat (limited to 'web/react/stores/user_store.jsx')
-rw-r--r-- | web/react/stores/user_store.jsx | 4 |
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]; } |