Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

help_menu: Fix help_menu message formatting overlay not opening.

Pratik Chanda8559032d3ab3
diff --git a/web/src/info_overlay.js b/web/src/info_overlay.js
index 81269f5fc7c..30881ea055c 100644
--- a/web/src/info_overlay.js
+++ b/web/src/info_overlay.js
@@ -73,7 +73,17 @@ const markdown_help_rows = [
},
{
markdown: "@*support team*",
- output_html: '<p><span class="user-group-mention">@support team</span></p>',
+ // Since there are no mentionable user groups that we can
+ // assume exist, we use a fake data-user-group-id of 0 in
+ // order to avoid upsetting the rendered_markdown.ts
+ // validation logic for user group elements.
+ //
+ // Similar hackery is not required for user mentions as very
+ // old mentions do not have data-user-id, so compatibility
+ // code for that case works ... but it might be better to just
+ // user your own name/user ID anyway.
+ output_html:
+ '<p><span class="user-group-mention" data-user-group-id="0">@support team</span></p>',
effect_html: "(notifies <b>support team</b> group)",
},
{