From 3e179a2c589a8f494a53080a0f555894550be275 Mon Sep 17 00:00:00 2001 From: Lalit Date: Sat, 29 Apr 2023 07:59:12 +0530 Subject: [PATCH] actions_popover: Hide "Add emoji reaction" in action menu in spectator mode. We should hide the "Add emoji reaction" from the message action menu while a user is not logged in, that is user is in public access mode. Fixes #25331. --- web/src/popover_menus_data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/popover_menus_data.js b/web/src/popover_menus_data.js index bdf5f52204..1314a0998b 100644 --- a/web/src/popover_menus_data.js +++ b/web/src/popover_menus_data.js @@ -101,7 +101,7 @@ export function get_actions_popover_content_context(message_id) { // `media_breakpoints.sm_min`, we need to include the reaction button in the // popover if it is not displayed. const should_display_add_reaction_option = - !message.is_me_message && !is_add_reaction_icon_visible(); + !message.is_me_message && !is_add_reaction_icon_visible() && not_spectator; return { message_id: message.id,