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.

user_deactivation_ui: Use get_full_name instead of get_by_user_id.

Aman Agrawal58230e509d80
diff --git a/web/src/user_deactivation_ui.ts b/web/src/user_deactivation_ui.ts
index 59b5c52963f..5d162835208 100644
--- a/web/src/user_deactivation_ui.ts
+++ b/web/src/user_deactivation_ui.ts
@@ -148,7 +148,7 @@ export function confirm_reactivation(
if (user.is_bot) {
if (user.bot_owner_id !== null && !people.is_person_active(user.bot_owner_id)) {
opts.original_owner_deactivated = true;
- opts.owner_name = people.get_by_user_id(user.bot_owner_id).full_name;
+ opts.owner_name = people.get_full_name(user.bot_owner_id);
} else {
opts.original_owner_deactivated = false;
}