about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-07-31 19:47:22 +0300
committerGitHub <noreply@github.com>2025-07-31 09:47:22 -0700
commitf4724e378d9227820db404b2172ba1c72bdd6cae (patch)
tree44f0c8b96b1420cb007bb196f3e52816d7d7852c
parente87555c4816c14752e944092d373ee53bbc05632 (diff)
downloadvoidsky-f4724e378d9227820db404b2172ba1c72bdd6cae.tar.zst
Don't animate images that will be posted as JPGs (#8760)
* don't play gifs that'll be png'd

* add media inset border

* fix unnecessary typecast

* Revert "fix unnecessary typecast"

This reverts commit 3a8bcc92774d83f6ece0577f919f527cd920761b.
-rw-r--r--src/view/com/composer/photos/Gallery.tsx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/view/com/composer/photos/Gallery.tsx b/src/view/com/composer/photos/Gallery.tsx
index c44461b60..a66d65d97 100644
--- a/src/view/com/composer/photos/Gallery.tsx
+++ b/src/view/com/composer/photos/Gallery.tsx
@@ -21,6 +21,7 @@ import {type ComposerImage, cropImage} from '#/state/gallery'
 import {Text} from '#/view/com/util/text/Text'
 import {useTheme} from '#/alf'
 import * as Dialog from '#/components/Dialog'
+import {MediaInsetBorder} from '#/components/MediaInsetBorder'
 import {type PostAction} from '../state/composer'
 import {EditImageDialog} from './EditImageDialog'
 import {ImageAltTextDialog} from './ImageAltTextDialog'
@@ -227,8 +228,12 @@ const GalleryItem = ({
         }}
         accessible={true}
         accessibilityIgnoresInvertColors
+        cachePolicy="none"
+        autoplay={false}
       />
 
+      <MediaInsetBorder />
+
       <ImageAltTextDialog
         control={altTextControl}
         image={image}