Don't render ComposerPills when unnecessary (#5975)

This commit is contained in:
Hailey
2024-10-28 11:07:22 -07:00
committed by GitHub
parent 8650d17958
commit 2e3844c7b4
+6
View File
@@ -872,6 +872,12 @@ function ComposerPills({
const media = draft.embed.media
const hasMedia = media?.type === 'images' || media?.type === 'video'
const hasLink = !!draft.embed.link
// Don't render anything if no pills are going to be displayed
if (isReply && !hasMedia && !hasLink) {
return null
}
return (
<Animated.View
style={[a.flex_row, a.p_sm, t.atoms.bg, bottomBarAnimatedStyle]}>