Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
composebox_typeahead: Remove extra comma in user mentions.
Apoorva Pendsef942b85c6d6d
diff --git a/web/src/typeahead_helper.ts b/web/src/typeahead_helper.tsindex 9d79d00ca43..19c6a25dd78 100644--- a/web/src/typeahead_helper.ts+++ b/web/src/typeahead_helper.ts@@ -163,6 +163,7 @@ export let render_person = (person: UserPillData | UserOrMentionPillData): strin),pronouns,secondary: person.user.delivery_email,+ show_comma: person.user.delivery_email !== null,};return render_typeahead_item(typeahead_arguments);diff --git a/web/templates/typeahead_list_item.hbs b/web/templates/typeahead_list_item.hbsindex 5473b5fd07e..ad21b0db176 100644--- a/web/templates/typeahead_list_item.hbs+++ b/web/templates/typeahead_list_item.hbs@@ -48,7 +48,7 @@{{> status_emoji status_emoji_info}}{{~/if}}{{~#if has_pronouns}}- <span class="pronouns">{{pronouns}}{{#if (or has_secondary_html has_secondary)}},{{/if}}</span>+ <span class="pronouns">{{pronouns}}{{#if (or has_secondary_html show_comma)}},{{/if}}</span>{{~/if}}{{~#if has_secondary_html}}<span class="autocomplete_secondary rendered_markdown single-line-rendered-markdown">{{rendered_markdown secondary_html}}</span>