Reaction Picker: Hide inactive reactions (#4768)

This commit is contained in:
zubiden 2024-07-15 15:52:59 +02:00 committed by Alexander Zinchuk
parent 574342e472
commit ed5eca5d72

View File

@ -201,6 +201,7 @@ const CustomEmojiPicker: FC<OwnProps & StateProps> = ({
.filter((reaction) => !topReactionsSlice.some((topReaction) => isSameReaction(topReaction, reaction)))
.slice(0, RECENT_REACTIONS_COUNT);
const cleanAvailableReactions = (availableReactions || [])
.filter(({ isInactive }) => !isInactive)
.map(({ reaction }) => reaction)
.filter((reaction) => {
return !topReactionsSlice.some((topReaction) => isSameReaction(topReaction, reaction))