From 673f3a1144884373540030a8f5cca3bad3d00b63 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 19 Jul 2017 13:54:16 -0700 Subject: PLT-6689: fix user image requests (#6946) * fix user image requests * fix eslint errors and a few more cache busters --- webapp/components/post_view/post/post.jsx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'webapp/components/post_view/post') diff --git a/webapp/components/post_view/post/post.jsx b/webapp/components/post_view/post/post.jsx index eda4405bb..4491d888c 100644 --- a/webapp/components/post_view/post/post.jsx +++ b/webapp/components/post_view/post/post.jsx @@ -199,13 +199,6 @@ export default class Post extends React.PureComponent { const isSystemMessage = PostUtils.isSystemMessage(post); const fromWebhook = post.props && post.props.from_webhook === 'true'; - let timestamp = 0; - if (!this.props.user || this.props.user.last_picture_update == null) { - timestamp = this.props.currentUser.last_picture_update; - } else { - timestamp = this.props.user.last_picture_update; - } - let status = this.props.status; if (fromWebhook) { status = null; @@ -213,7 +206,7 @@ export default class Post extends React.PureComponent { let profilePic = ( ); } else if (PostUtils.isSystemMessage(post)) { -- cgit v1.2.3-1-g7c22