Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
typeahead: Consider display name for system groups when sorting.
Sahil Batra04ec16a17290
diff --git a/web/src/typeahead_helper.ts b/web/src/typeahead_helper.tsindex 1a4bd368fb1..70bb7dec9f2 100644--- a/web/src/typeahead_helper.ts+++ b/web/src/typeahead_helper.ts@@ -485,7 +485,9 @@ export let sort_recipients = <UserType extends UserOrMentionPillData | UserPillD];const email_okay_matches = [...email_results.word_boundary_matches];- const groups_results = typeahead.triage_raw(query, groups, (g) => g.name);+ const groups_results = typeahead.triage_raw(query, groups, (g) =>+ user_groups.get_display_group_name(g.name),+ );const groups_good_matches = [...groups_results.exact_matches,...groups_results.begins_with_case_sensitive_matches,