mirror of https://github.com/zulip/zulip.git
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:
parent
acba8518fb
commit
3e179a2c58
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue