diff options
author | Hailey <me@haileyok.com> | 2024-10-28 11:07:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-28 11:07:22 -0700 |
commit | 2e3844c7b428d6479246f4d51993679f0e5cb33f (patch) | |
tree | d24a017a70571e449b8dd43ebe3314fff421059a /src/view | |
parent | 8650d17958a88c38d99002868da80019e4595766 (diff) | |
download | voidsky-2e3844c7b428d6479246f4d51993679f0e5cb33f.tar.zst |
Don't render `ComposerPills` when unnecessary (#5975)
Diffstat (limited to 'src/view')
-rw-r--r-- | src/view/com/composer/Composer.tsx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx index 5750e7f18..efebd65fe 100644 --- a/src/view/com/composer/Composer.tsx +++ b/src/view/com/composer/Composer.tsx @@ -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]}> |