rendered_markdown: Add support for rendering of user group silent mention.

Earlier, the text in silently mentioned user group was rendered
as: `@user-group`

which is fixed by this commit and now it rendered as: `user-group`.
This commit is contained in:
akshatdalton
2021-05-16 19:01:53 +00:00
committed by Tim Abbott
parent 18203d8af3
commit 9e5f2f841f

View File

@@ -118,7 +118,7 @@ export const update_elements = (content) => {
if (user_group_id && !$(this).find(".highlight").length) {
// Edit the mention to show the current name for the
// user group, if its not in search.
$(this).text("@" + user_group.name);
set_name_in_mention_element(this, user_group.name);
}
});