From 22dfaf1e0f0262c333e834fc2ef18d2d90df9d22 Mon Sep 17 00:00:00 2001 From: Mattermost Build Date: Wed, 9 Sep 2020 00:29:41 -0400 Subject: [PATCH] MM-27132 Fix groups not actually being highlighted for self on mobile (#4776) (#4786) (cherry picked from commit b8a002683fdba85be4cbbb0df08e566f29701b5b) Co-authored-by: Farhan Munshi <3207297+fmunshi@users.noreply.github.com> --- app/components/at_mention/at_mention.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/at_mention/at_mention.js b/app/components/at_mention/at_mention.js index a32cdcf6d..99be4eee5 100644 --- a/app/components/at_mention/at_mention.js +++ b/app/components/at_mention/at_mention.js @@ -169,7 +169,7 @@ export default class AtMention extends React.PureComponent { } else { const group = this.getGroupFromMentionName(); if (group.allow_reference) { - highlighted = mentionKeys.some((item) => item.key === group.name); + highlighted = mentionKeys.some((item) => item.key === `@${group.name}`); isMention = true; mention = group.name; suffix = this.props.mentionName.substring(group.name.length);