From f4724e378d9227820db404b2172ba1c72bdd6cae Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Thu, 31 Jul 2025 19:47:22 +0300 Subject: 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. --- src/view/com/composer/photos/Gallery.tsx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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} /> + +