From d9d86400041ec97203468a9de8f6e7c29731b430 Mon Sep 17 00:00:00 2001 From: Nevyana Angelova Date: Fri, 17 Apr 2020 15:05:20 +0200 Subject: [PATCH 1/2] Set mentions to true in header change message --- components/post_markdown/system_message_helpers.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/post_markdown/system_message_helpers.jsx b/components/post_markdown/system_message_helpers.jsx index ba8739626053..c36bd2e2004a 100644 --- a/components/post_markdown/system_message_helpers.jsx +++ b/components/post_markdown/system_message_helpers.jsx @@ -177,7 +177,7 @@ function renderHeaderChangeMessage(post) { const headerOptions = { singleline: true, channelNamesMap: post.props && post.props.channel_mentions, - mentionHighlight: false, + mentionHighlight: true, }; const username = renderUsername(post.props.username); From b7e1a87c04df0c953f512f8fb95579dbb99cef0e Mon Sep 17 00:00:00 2001 From: Nevyana Angelova Date: Fri, 17 Apr 2020 15:23:01 +0200 Subject: [PATCH 2/2] Fix tests --- .../post_markdown/__snapshots__/post_markdown.test.jsx.snap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/post_markdown/__snapshots__/post_markdown.test.jsx.snap b/components/post_markdown/__snapshots__/post_markdown.test.jsx.snap index f80c016678b8..5c65e96eec62 100644 --- a/components/post_markdown/__snapshots__/post_markdown.test.jsx.snap +++ b/components/post_markdown/__snapshots__/post_markdown.test.jsx.snap @@ -69,7 +69,7 @@ exports[`components/PostMarkdown should render header change properly 1`] = ` "display_name": "Test", }, }, - "mentionHighlight": false, + "mentionHighlight": true, "singleline": true, } } @@ -85,7 +85,7 @@ exports[`components/PostMarkdown should render header change properly 1`] = ` "display_name": "Test", }, }, - "mentionHighlight": false, + "mentionHighlight": true, "singleline": true, } }