put the logic where it belongs to

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-09-13 23:15:37 +02:00
parent b3ac044546
commit affbe86081
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ const StillImage: React.FC<IStillImage> = ({
const img = useRef<HTMLImageElement>(null);
const hoverToPlay = (
src && !autoPlayGif && ((isGif && !src.endsWith('.png')) || src.endsWith('.gif') || src.startsWith('blob:'))
src && !autoPlayGif && ((isGif) || src.endsWith('.gif') || src.startsWith('blob:'))
);
const handleImageLoad = () => {

View file

@ -28,7 +28,7 @@ const Emoji: React.FC<IEmoji> = (props): JSX.Element | null => {
<StillImage
alt={alt || emoji}
src={src}
isGif
isGif={!src.endsWith('.png')}
noGroup={noGroup}
letterboxed
{...rest}