From 0bb573c7e035346d1d4db7c7636a7b9dc1be63ca Mon Sep 17 00:00:00 2001 From: Farhan Munshi <3207297+fm2munsh@users.noreply.github.com> Date: Fri, 6 Mar 2020 13:50:38 -0500 Subject: [PATCH] MM-22622 Disable at mention highligh in channel header (#4005) --- .../__snapshots__/channel_info_header.test.js.snap | 6 ++++++ app/screens/channel_info/channel_info_header.js | 1 + 2 files changed, 7 insertions(+) diff --git a/app/screens/channel_info/__snapshots__/channel_info_header.test.js.snap b/app/screens/channel_info/__snapshots__/channel_info_header.test.js.snap index 83cc3219b..b15ad1762 100644 --- a/app/screens/channel_info/__snapshots__/channel_info_header.test.js.snap +++ b/app/screens/channel_info/__snapshots__/channel_info_header.test.js.snap @@ -190,6 +190,7 @@ exports[`channel_info_header should match snapshot 1`] = ` }, } } + disableAtChannelMentionHighlight={true} onChannelLinkPress={[MockFunction]} onPermalinkPress={[MockFunction]} textStyles={ @@ -534,6 +535,7 @@ exports[`channel_info_header should match snapshot when DM and hasGuests and is }, } } + disableAtChannelMentionHighlight={true} onChannelLinkPress={[MockFunction]} onPermalinkPress={[MockFunction]} textStyles={ @@ -850,6 +852,7 @@ exports[`channel_info_header should match snapshot when DM and hasGuests but its }, } } + disableAtChannelMentionHighlight={true} onChannelLinkPress={[MockFunction]} onPermalinkPress={[MockFunction]} textStyles={ @@ -1194,6 +1197,7 @@ exports[`channel_info_header should match snapshot when GM and hasGuests 1`] = ` }, } } + disableAtChannelMentionHighlight={true} onChannelLinkPress={[MockFunction]} onPermalinkPress={[MockFunction]} textStyles={ @@ -1510,6 +1514,7 @@ exports[`channel_info_header should match snapshot when is group constrained 1`] }, } } + disableAtChannelMentionHighlight={true} onChannelLinkPress={[MockFunction]} onPermalinkPress={[MockFunction]} textStyles={ @@ -1876,6 +1881,7 @@ exports[`channel_info_header should match snapshot when public channel and hasGu }, } } + disableAtChannelMentionHighlight={true} onChannelLinkPress={[MockFunction]} onPermalinkPress={[MockFunction]} textStyles={ diff --git a/app/screens/channel_info/channel_info_header.js b/app/screens/channel_info/channel_info_header.js index 13cf4af9f..4766d0af6 100644 --- a/app/screens/channel_info/channel_info_header.js +++ b/app/screens/channel_info/channel_info_header.js @@ -213,6 +213,7 @@ export default class ChannelInfoHeader extends React.PureComponent { blockStyles={blockStyles} value={header} onChannelLinkPress={popToRoot} + disableAtChannelMentionHighlight={true} />