From 70449a4768d022e18fa13a0692165ed86cc6913a Mon Sep 17 00:00:00 2001 From: enahum Date: Wed, 5 Apr 2017 00:27:09 -0300 Subject: [PATCH] PLT-5940 Remove ability to reply to system and deleted messages (#454) --- app/components/post/post.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/components/post/post.js b/app/components/post/post.js index 18ebd34d3..9f56be8c4 100644 --- a/app/components/post/post.js +++ b/app/components/post/post.js @@ -86,8 +86,9 @@ class Post extends PureComponent { }; handlePress = () => { - if (this.props.onPress) { - this.props.onPress(this.props.post); + const {post, onPress} = this.props; + if (onPress && post.state !== Constants.POST_DELETED && !isSystemMessage(post)) { + onPress(post); } };