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.
This commit is contained in:
Lalit 2023-04-29 07:59:12 +05:30 committed by Tim Abbott
parent acba8518fb
commit 3e179a2c58
1 changed files with 1 additions and 1 deletions

View File

@ -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 // `media_breakpoints.sm_min`, we need to include the reaction button in the
// popover if it is not displayed. // popover if it is not displayed.
const should_display_add_reaction_option = 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 { return {
message_id: message.id, message_id: message.id,