From 9e5f2f841f28e936f788b2ddb03cef9c1925dcad Mon Sep 17 00:00:00 2001 From: akshatdalton Date: Sun, 16 May 2021 19:01:53 +0000 Subject: [PATCH] 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`. --- static/js/rendered_markdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/rendered_markdown.js b/static/js/rendered_markdown.js index 8bd66d015c..3727ab0cfb 100644 --- a/static/js/rendered_markdown.js +++ b/static/js/rendered_markdown.js @@ -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); } });