diff --git a/app/components/at_mention/__snapshots__/at_mention.test.js.snap b/app/components/at_mention/__snapshots__/at_mention.test.js.snap index 6427acd72..934ece814 100644 --- a/app/components/at_mention/__snapshots__/at_mention.test.js.snap +++ b/app/components/at_mention/__snapshots__/at_mention.test.js.snap @@ -9,14 +9,7 @@ exports[`AtMention should match snapshot, no highlight 1`] = ` } > @John.Smith diff --git a/app/components/at_mention/at_mention.js b/app/components/at_mention/at_mention.js index 44ac90661..aa4be87ec 100644 --- a/app/components/at_mention/at_mention.js +++ b/app/components/at_mention/at_mention.js @@ -174,12 +174,12 @@ export default class AtMention extends React.PureComponent { } else { const pattern = new RegExp(/\b(all|channel|here)(?:\.\B|_\b|\b)/, 'i'); const mentionMatch = pattern.exec(mentionName); - highlighted = true; if (mentionMatch) { mention = mentionMatch.length > 1 ? mentionMatch[1] : mentionMatch[0]; suffix = mentionName.replace(mention, ''); isMention = true; + highlighted = true; } else { mention = mentionName; }