diff --git a/app/components/post/post.js b/app/components/post/post.js index 65b30ca7a..769526775 100644 --- a/app/components/post/post.js +++ b/app/components/post/post.js @@ -28,8 +28,6 @@ import {t} from 'app/utils/i18n'; import {paddingHorizontal as padding} from 'app/components/safe_area_view/iphone_x_spacing'; import {goToScreen, showModalOverCurrentContext} from 'app/actions/navigation'; -import Config from 'assets/config'; - export default class Post extends PureComponent { static propTypes = { actions: PropTypes.shape({ @@ -262,8 +260,6 @@ export default class Post extends PureComponent { const style = getStyleSheet(theme); const isReplyPost = this.isReplyPost(); - const onUsernamePress = - Config.ExperimentalUsernamePressIsMention && !channelIsReadOnly ? this.autofillUserMention : this.viewUserProfile; const mergeMessage = consecutivePost && !hasComments && !isBot; const highlightFlagged = isFlagged && !skipFlaggedHeader; const hightlightPinned = post.is_pinned && !skipPinnedHeader; @@ -300,7 +296,7 @@ export default class Post extends PureComponent { shouldRenderReplyButton={shouldRenderReplyButton} showFullDate={showFullDate} onPress={this.handleReply} - onUsernamePress={onUsernamePress} + onUsernamePress={this.viewUserProfile} renderReplies={renderReplies} theme={theme} previousPostExists={previousPostExists} diff --git a/assets/base/config.json b/assets/base/config.json index 0abd40e17..ff134a642 100644 --- a/assets/base/config.json +++ b/assets/base/config.json @@ -11,7 +11,6 @@ "PlatformNoticeURL": "https://about.mattermost.com/platform-notice-txt/", "MobileNoticeURL": "https://about.mattermost.com/mobile-notice-txt/", "SegmentApiKey": "", - "ExperimentalUsernamePressIsMention": false, "HideEmailLoginExperimental": false, "HideGitLabLoginExperimental": false,