FIX: Avoid highlight mention to groups that are not public.

Follow-up to 3f50481188.
This commit is contained in:
Dan Ungureanu
2020-02-12 12:34:09 +02:00
parent ec40242b5c
commit 67c9940d72
2 changed files with 2 additions and 2 deletions
@@ -46,7 +46,7 @@ function updateFound($mentions, usernames) {
const username = usernames[i];
if (found[username.toLowerCase()]) {
replaceSpan($e, username, { cannot_see: cannotSee[username] });
} else if (foundGroups[username]) {
} else if (mentionableGroups[username]) {
replaceSpan($e, username, {
group: true,
mentionable: mentionableGroups[username]