Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
popover: Fix user popover and profile for bot with inaccessible users.
Sahil Batra27d236fb523a
diff --git a/web/src/user_card_popover.js b/web/src/user_card_popover.jsindex 24d15ca616b..769da6abe4a 100644--- a/web/src/user_card_popover.js+++ b/web/src/user_card_popover.js@@ -298,7 +298,7 @@ function get_user_card_popover_data(if (is_system_bot) {args.is_system_bot = is_system_bot;} else if (bot_owner_id) {- const bot_owner = people.get_bot_owner_user(bot_owner_id);+ const bot_owner = people.get_bot_owner_user(user);args.bot_owner = bot_owner;}}diff --git a/web/src/user_profile.js b/web/src/user_profile.jsindex 6eaa3c028cb..0493271ccb0 100644--- a/web/src/user_profile.js+++ b/web/src/user_profile.js@@ -393,7 +393,7 @@ export function show_user_profile(user, default_tab_key = "profile-tab") {if (is_system_bot) {args.is_system_bot = is_system_bot;} else if (bot_owner_id) {- const bot_owner = people.get_bot_owner_user(bot_owner_id);+ const bot_owner = people.get_bot_owner_user(user);args.bot_owner = bot_owner;}args.bot_type = settings_data.bot_type_id_to_string(user.bot_type);