Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
user_card_popover: Use get_full_name instead of get_by_user_id.
Aman Agrawal150d855b474b
diff --git a/web/src/user_card_popover.ts b/web/src/user_card_popover.tsindex 70dd9c92d43..ffbc963ce89 100644--- a/web/src/user_card_popover.ts+++ b/web/src/user_card_popover.ts@@ -834,7 +834,7 @@ function register_click_handlers(): void {});}const user_id = elem_to_user_id($(this).parents("ul"));- const name = people.get_by_user_id(user_id).full_name;+ const name = people.get_full_name(user_id);const mention = people.get_mention_syntax(name, user_id);compose_ui.insert_syntax_and_focus(mention);user_sidebar.hide();@@ -851,7 +851,7 @@ function register_click_handlers(): void {});}const user_id = elem_to_user_id($(this).parents("ul"));- const name = people.get_by_user_id(user_id).full_name;+ const name = people.get_full_name(user_id);const is_active = people.is_active_user_or_system_bot(user_id);const mention = people.get_mention_syntax(name, user_id, !is_active);compose_ui.insert_syntax_and_focus(mention);