From ed5eca5d72f137104c74c80172f92b89b4df2647 Mon Sep 17 00:00:00 2001 From: zubiden <19638254+zubiden@users.noreply.github.com> Date: Mon, 15 Jul 2024 15:52:59 +0200 Subject: [PATCH] Reaction Picker: Hide inactive reactions (#4768) --- src/components/common/CustomEmojiPicker.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/common/CustomEmojiPicker.tsx b/src/components/common/CustomEmojiPicker.tsx index bd05dca64..45757ede0 100644 --- a/src/components/common/CustomEmojiPicker.tsx +++ b/src/components/common/CustomEmojiPicker.tsx @@ -201,6 +201,7 @@ const CustomEmojiPicker: FC = ({ .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))