Remove ExperimentalUsernamePressIsMention build time feature (#3993)

This commit is contained in:
Elias Nahum 2020-03-13 14:54:19 -03:00 committed by GitHub
parent fbd7fedfbc
commit 50fc7d6896
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 6 deletions

View file

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

View file

@ -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,