summaryrefslogtreecommitdiffstats
path: root/webapp/components/rhs_root_post.jsx
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-12-06 10:22:45 -0500
committerGitHub <noreply@github.com>2016-12-06 10:22:45 -0500
commitdcf11a14d8363c79ab62aefca46834d6daa615ab (patch)
tree27db991b5c028da5392f1c22fb4528f9f24c4b17 /webapp/components/rhs_root_post.jsx
parent4df1ad2b28a660b1a0b96869701ffb0b9f0a6219 (diff)
downloadchat-dcf11a14d8363c79ab62aefca46834d6daa615ab.tar.gz
chat-dcf11a14d8363c79ab62aefca46834d6daa615ab.tar.bz2
chat-dcf11a14d8363c79ab62aefca46834d6daa615ab.zip
Don't show status for posts from webhooks (#4726)
Diffstat (limited to 'webapp/components/rhs_root_post.jsx')
-rw-r--r--webapp/components/rhs_root_post.jsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/webapp/components/rhs_root_post.jsx b/webapp/components/rhs_root_post.jsx
index 1e6ed4ff5..6f4372973 100644
--- a/webapp/components/rhs_root_post.jsx
+++ b/webapp/components/rhs_root_post.jsx
@@ -274,10 +274,15 @@ export default class RhsRootPost extends React.Component {
);
}
+ let status = this.props.status;
+ if (post.props && post.props.from_webhook === 'true') {
+ status = null;
+ }
+
let profilePic = (
<ProfilePicture
src={PostUtils.getProfilePicSrcForPost(post, timestamp)}
- status={this.props.status}
+ status={status}
width='36'
height='36'
user={this.props.user}