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

This commit is contained in:
Farhan Munshi 2020-09-09 00:20:41 -04:00 committed by GitHub
parent ef583d4fb6
commit b8a002683f
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);