Clicking username in read-only allows sending message (#2489)

This commit is contained in:
Chris Duarte 2019-01-24 05:46:57 -08:00 committed by Harrison Healey
parent 53f4288872
commit e92f7afa82

View file

@ -263,7 +263,8 @@ export default class Post extends PureComponent {
const style = getStyleSheet(theme);
const isReplyPost = this.isReplyPost();
const onUsernamePress = Config.ExperimentalUsernamePressIsMention ? this.autofillUserMention : this.viewUserProfile;
const onUsernamePress =
Config.ExperimentalUsernamePressIsMention && !channelIsReadOnly ? this.autofillUserMention : this.viewUserProfile;
const mergeMessage = consecutivePost && !hasComments;
const highlightFlagged = isFlagged && !skipFlaggedHeader;
const hightlightPinned = post.is_pinned && !skipPinnedHeader;