Reaction Picker: Hide inactive reactions (#4768)
This commit is contained in:
parent
574342e472
commit
ed5eca5d72
@ -201,6 +201,7 @@ const CustomEmojiPicker: FC<OwnProps & StateProps> = ({
|
|||||||
.filter((reaction) => !topReactionsSlice.some((topReaction) => isSameReaction(topReaction, reaction)))
|
.filter((reaction) => !topReactionsSlice.some((topReaction) => isSameReaction(topReaction, reaction)))
|
||||||
.slice(0, RECENT_REACTIONS_COUNT);
|
.slice(0, RECENT_REACTIONS_COUNT);
|
||||||
const cleanAvailableReactions = (availableReactions || [])
|
const cleanAvailableReactions = (availableReactions || [])
|
||||||
|
.filter(({ isInactive }) => !isInactive)
|
||||||
.map(({ reaction }) => reaction)
|
.map(({ reaction }) => reaction)
|
||||||
.filter((reaction) => {
|
.filter((reaction) => {
|
||||||
return !topReactionsSlice.some((topReaction) => isSameReaction(topReaction, reaction))
|
return !topReactionsSlice.some((topReaction) => isSameReaction(topReaction, reaction))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user