diff options
author | Chris <ccbrown112@gmail.com> | 2017-07-19 13:54:16 -0700 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-07-19 13:54:16 -0700 |
commit | 673f3a1144884373540030a8f5cca3bad3d00b63 (patch) | |
tree | a7555e741730e9af34b56b194aac3c05b5ab206a /webapp/components/rhs_comment.jsx | |
parent | 23a59b03dd272ea26878622a3f46576fcf9e59c8 (diff) | |
download | chat-673f3a1144884373540030a8f5cca3bad3d00b63.tar.gz chat-673f3a1144884373540030a8f5cca3bad3d00b63.tar.bz2 chat-673f3a1144884373540030a8f5cca3bad3d00b63.zip |
PLT-6689: fix user image requests (#6946)
* fix user image requests
* fix eslint errors and a few more cache busters
Diffstat (limited to 'webapp/components/rhs_comment.jsx')
-rw-r--r-- | webapp/components/rhs_comment.jsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/webapp/components/rhs_comment.jsx b/webapp/components/rhs_comment.jsx index 568d85304..6592c487d 100644 --- a/webapp/components/rhs_comment.jsx +++ b/webapp/components/rhs_comment.jsx @@ -212,8 +212,6 @@ export default class RhsComment extends React.Component { const isEphemeral = Utils.isPostEphemeral(post); const isSystemMessage = PostUtils.isSystemMessage(post); - var timestamp = this.props.currentUser.last_picture_update; - let status = this.props.status; if (post.props && post.props.from_webhook === 'true') { status = null; @@ -277,7 +275,7 @@ export default class RhsComment extends React.Component { let profilePic = ( <ProfilePicture - src={PostUtils.getProfilePicSrcForPost(post, timestamp)} + src={PostUtils.getProfilePicSrcForPost(post, this.props.user)} status={status} width='36' height='36' @@ -289,7 +287,7 @@ export default class RhsComment extends React.Component { if (post.props && post.props.from_webhook) { profilePic = ( <ProfilePicture - src={PostUtils.getProfilePicSrcForPost(post, timestamp)} + src={PostUtils.getProfilePicSrcForPost(post, this.props.user)} width='36' height='36' /> |