Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
presence_data: Skip fetching presence_data in user_card_popover for spectators.
Maneesh Shuklaae6acd9f0519
diff --git a/web/src/user_card_popover.ts b/web/src/user_card_popover.tsindex e08a94f56e0..21802018730 100644--- a/web/src/user_card_popover.ts+++ b/web/src/user_card_popover.ts@@ -239,6 +239,10 @@ type UserCardPopoverData = {};export let fetch_presence_for_popover = (user_id: number): void => {+ if (page_params.is_spectator) {+ return;+ }+if (!people.is_active_user_for_popover(user_id) || people.get_by_user_id(user_id).is_bot) {return;}