[Glitch] Add limit of 8 different reaction types per announcement

Port f816da9c64 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
main
Eugen Rochko 2020-01-25 05:23:33 +01:00 committed by Thibaut Girka
parent f1e4738f81
commit 4e1efacfac
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ class ReactionsBar extends ImmutablePureComponent {
/>
))}
<EmojiPickerDropdown onPickEmoji={this.handleEmojiPick} button={<Icon id='plus' />} />
{visibleReactions.size < 8 && <EmojiPickerDropdown onPickEmoji={this.handleEmojiPick} button={<Icon id='plus' />} />}
</div>
);
}