PLT-5940 Remove ability to reply to system and deleted messages (#454)
This commit is contained in:
parent
ed0d608d1f
commit
70449a4768
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue