Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
typeahead [nfc]: Use people.get_visible_email abstraction.
Greg Price728555522bba
diff --git a/static/js/composebox_typeahead.js b/static/js/composebox_typeahead.jsindex 710553ca0d9..38e0e911d6c 100644--- a/static/js/composebox_typeahead.js+++ b/static/js/composebox_typeahead.js@@ -89,13 +89,9 @@ export function query_matches_person(query, person) {if (!settings_data.show_email()) {return typeahead.query_matches_string(query, person.full_name, " ");}- let email_attr = "email";- if (person.delivery_email) {- email_attr = "delivery_email";- }return (typeahead.query_matches_string(query, person.full_name, " ") ||- typeahead.query_matches_string(query, person[email_attr], " ")+ typeahead.query_matches_string(query, people.get_visible_email(person), " "));}