Disable redacting reactions if we don't have sufficient permissions (#8767)
This commit is contained in:
parent
3f99f594de
commit
9b8b1d193e
11 changed files with 37 additions and 9 deletions
|
@ -45,6 +45,7 @@ interface IProps {
|
|||
onClick(emoji: IEmoji): void;
|
||||
onMouseEnter(emoji: IEmoji): void;
|
||||
onMouseLeave(emoji: IEmoji): void;
|
||||
isEmojiDisabled?: (unicode: string) => boolean;
|
||||
}
|
||||
|
||||
class Category extends React.PureComponent<IProps> {
|
||||
|
@ -60,6 +61,7 @@ class Category extends React.PureComponent<IProps> {
|
|||
onClick={onClick}
|
||||
onMouseEnter={onMouseEnter}
|
||||
onMouseLeave={onMouseLeave}
|
||||
disabled={this.props.isEmojiDisabled?.(emoji.unicode)}
|
||||
/>
|
||||
))
|
||||
}</div>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue