From e92f7afa828f87bdb96df21ac1cf3e429e246f1f Mon Sep 17 00:00:00 2001 From: Chris Duarte Date: Thu, 24 Jan 2019 05:46:57 -0800 Subject: [PATCH] Clicking username in read-only allows sending message (#2489) --- app/components/post/post.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/components/post/post.js b/app/components/post/post.js index 7e6211b07..b4136e4e8 100644 --- a/app/components/post/post.js +++ b/app/components/post/post.js @@ -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;