Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
user_profile: Add function to return the user profile modal id if open.
palashb0194fe762ea595
diff --git a/web/src/user_profile.js b/web/src/user_profile.jsindex 47fe1cac3e2..a10870386f3 100644--- a/web/src/user_profile.js+++ b/web/src/user_profile.js@@ -32,6 +32,14 @@ function compare_by_name(a, b) {return util.strcmp(a.name, b.name);}+export function get_user_id_if_user_profile_modal_open() {+ if (overlays.is_modal_open() && overlays.active_modal() === "#user-profile-modal") {+ const user_id = $("#user-profile-modal").data("user-id");+ return user_id;+ }+ return undefined;+}+function initialize_bot_owner(element_id, bot_id) {const user_pills = new Map();const bot = people.get_by_user_id(bot_id);