FIX: Avoid highlight mention to groups that are not public.
Follow-up to 3f50481188.
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user