about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-10-28 11:07:22 -0700
committerGitHub <noreply@github.com>2024-10-28 11:07:22 -0700
commit2e3844c7b428d6479246f4d51993679f0e5cb33f (patch)
treed24a017a70571e449b8dd43ebe3314fff421059a /src
parent8650d17958a88c38d99002868da80019e4595766 (diff)
downloadvoidsky-2e3844c7b428d6479246f4d51993679f0e5cb33f.tar.zst
Don't render `ComposerPills` when unnecessary (#5975)
Diffstat (limited to 'src')
-rw-r--r--src/view/com/composer/Composer.tsx6
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]}>