PLT-5940 Remove ability to reply to system and deleted messages (#454)

This commit is contained in:
enahum 2017-04-05 00:27:09 -03:00 committed by GitHub
parent ed0d608d1f
commit 70449a4768

View file

@ -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);
}
};