mention: Mentions via subgroup should be highlighted.

This commit does not add highlighting to any pre-existing group mentions
for which a user was part of the mentioned group via a subgroup. This
only fixes it for mentions moving forward.
Fixes https://chat.zulip.org/#narrow/channel/9-issues/topic/group.20mention.20not.20highlighted/near/2008541
This commit is contained in:
Shubham Padia
2024-12-20 08:05:01 +00:00
committed by Tim Abbott
parent 3b3ab05f67
commit 0b4fe15c8a
8 changed files with 102 additions and 19 deletions

View File

@@ -205,7 +205,7 @@ export const update_elements = ($content: JQuery): void => {
const my_user_id = people.my_current_user_id();
// Mark user group you're a member of.
if (user_groups.is_direct_member_of(my_user_id, user_group_id)) {
if (user_groups.is_user_in_group(user_group_id, my_user_id)) {
$(this).addClass("user-mention-me");
}