File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
src/components/MessageOverlay Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -575,6 +575,9 @@ const MessageOverlayWithContext = <
575575 } ) ,
576576 ) }
577577 showScreen = { showScreen }
578+ supportedReactions = {
579+ messagesContext ?. supportedReactions
580+ }
578581 title = { messageReactionTitle }
579582 />
580583 ) : null }
Original file line number Diff line number Diff line change @@ -156,6 +156,14 @@ export const OverlayReactions: React.FC<OverlayReactionsProps> = (props) => {
156156
157157 const width = useWindowDimensions ( ) . width ;
158158
159+ const supportedReactionTypes = supportedReactions . map (
160+ ( supportedReaction ) => supportedReaction . type ,
161+ ) ;
162+
163+ const filteredReactions = reactions . filter ( ( reaction ) =>
164+ supportedReactionTypes . includes ( reaction . type ) ,
165+ ) ;
166+
159167 const numColumns = Math . floor (
160168 ( width -
161169 overlayPadding * 2 -
@@ -330,7 +338,7 @@ export const OverlayReactions: React.FC<OverlayReactionsProps> = (props) => {
330338 >
331339 < Text style = { [ styles . title , { color : black } , titleStyle ] } > { title } </ Text >
332340 < FlatList
333- data = { reactions }
341+ data = { filteredReactions }
334342 keyExtractor = { ( { name } , index ) => `${ name } _${ index } ` }
335343 numColumns = { numColumns }
336344 renderItem = { renderItem }
You can’t perform that action at this time.
0 commit comments