summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2016-02-24 11:42:19 -0500
committerJoramWilander <jwawilander@gmail.com>2016-02-24 11:42:19 -0500
commit292e1248ccba07d3c0a147747eb1c7661c7a4d57 (patch)
tree5079a678041480aee87e181f6473900b0331e8f4 /web
parentf7a4e9a5737f2d022b56617eff3d70cde64e8962 (diff)
downloadchat-292e1248ccba07d3c0a147747eb1c7661c7a4d57.tar.gz
chat-292e1248ccba07d3c0a147747eb1c7661c7a4d57.tar.bz2
chat-292e1248ccba07d3c0a147747eb1c7661c7a4d57.zip
Fix RHS usernames and intro message usernames
Diffstat (limited to 'web')
-rw-r--r--web/react/components/rhs_thread.jsx2
-rw-r--r--web/react/utils/channel_intro_messages.jsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/web/react/components/rhs_thread.jsx b/web/react/components/rhs_thread.jsx
index d007dd47f..4d770287c 100644
--- a/web/react/components/rhs_thread.jsx
+++ b/web/react/components/rhs_thread.jsx
@@ -188,7 +188,7 @@ export default class RhsThread extends React.Component {
if (UserStore.getCurrentId() === selected.user_id) {
p = UserStore.getCurrentUser();
} else {
- p = profiles[selected.user_id];
+ p = profiles[comPost.user_id];
}
return (
<Comment
diff --git a/web/react/utils/channel_intro_messages.jsx b/web/react/utils/channel_intro_messages.jsx
index 79e58147f..ed94f94b8 100644
--- a/web/react/utils/channel_intro_messages.jsx
+++ b/web/react/utils/channel_intro_messages.jsx
@@ -47,7 +47,7 @@ export function createDMIntroMessage(channel) {
</div>
<div className='channel-intro-profile'>
<strong>
- <UserProfile userId={teammate.id}/>
+ <UserProfile user={teammate}/>
</strong>
</div>
<p className='channel-intro-text'>