Skip to content

Can add a reaction when not allowed on Comments feature #2040

@AntoLC

Description

@AntoLC

Describe the bug
There are 2 places where users can add reactions from the EmojiPicker, on one of them the abilities filter is lacking.

Correct one:

{canAddReaction && (
<EmojiPicker
onEmojiSelect={(emoji: { native: string }) =>
onReactionSelect(emoji.native)
}
>
<Components.Generic.Toolbar.Button
key={"add-reaction"}
mainTooltip={dict.comments.actions.add_reaction}
variant="compact"
>
<RiEmotionLine size={16} />
</Components.Generic.Toolbar.Button>
</EmojiPicker>
)}

Lacking one:

<EmojiPicker
onEmojiSelect={(emoji: { native: string }) =>
onReactionSelect(emoji.native)
}

To Reproduce
Image

Misc

  • Node version:
  • Package manager:
  • Browser:
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions