Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
popovers: Insert silent mentions for deactivated users.
M1gue112e818a071e27
diff --git a/web/src/user_card_popover.js b/web/src/user_card_popover.jsindex 3de96ba1d81..a09c9cff341 100644--- a/web/src/user_card_popover.js+++ b/web/src/user_card_popover.js@@ -286,7 +286,7 @@ function get_user_card_popover_data(status_content_available: Boolean(status_text || status_emoji_info),status_text,status_emoji_info,- user_mention_syntax: people.get_mention_syntax(user.full_name, user.user_id),+ user_mention_syntax: people.get_mention_syntax(user.full_name, user.user_id, !is_active),date_joined,spectator_view,should_add_guest_user_indicator: people.should_add_guest_user_indicator(user.user_id),@@ -742,7 +742,8 @@ function register_click_handlers() {}const user_id = elem_to_user_id($(e.target).parents("ul"));const name = people.get_by_user_id(user_id).full_name;- const mention = people.get_mention_syntax(name, user_id);+ const is_active = people.is_active_user_for_popover(user_id);+ const mention = people.get_mention_syntax(name, user_id, !is_active);compose_ui.insert_syntax_and_focus(mention);message_user_card.hide();e.stopPropagation();