Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Disable freeform emoji reactions in the message composer
Browse files Browse the repository at this point in the history
  • Loading branch information
tadzik committed Oct 15, 2021
1 parent 6bb8263 commit 215df55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/views/emojipicker/EmojiPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const EMOJIS_PER_ROW = 8;
const ZERO_WIDTH_JOINER = "\u200D";

interface IProps {
allowUnlisted?: boolean;
selectedEmojis?: Set<string>;
showQuickReactions?: boolean;
onChoose(unicode: string): boolean;
Expand Down Expand Up @@ -275,7 +276,7 @@ class EmojiPicker extends React.Component<IProps, IState> {
}) }
</AutoHideScrollbar>
{
(this.state.filter) &&
(this.props.allowUnlisted && this.state.filter) &&
<AccessibleButton
kind="link"
onClick={() => this.reactWith(this.state.filter)}
Expand Down
1 change: 1 addition & 0 deletions src/components/views/emojipicker/ReactionPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ class ReactionPicker extends React.Component<IProps, IState> {

render() {
return <EmojiPicker
allowUnlisted={true}
onChoose={this.onChoose}
selectedEmojis={this.state.selectedEmojis}
showQuickReactions={true}
Expand Down

0 comments on commit 215df55

Please sign in to comment.