MM-27132 Fix groups not actually being highlighted for self on mobile (#4776) (#4786)

(cherry picked from commit b8a002683f)

Co-authored-by: Farhan Munshi <3207297+fmunshi@users.noreply.github.com>
This commit is contained in:
Mattermost Build 2020-09-09 00:29:41 -04:00 committed by GitHub
parent 937209c6d7
commit 22dfaf1e0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);