diff --git a/src/components/status.jsx b/src/components/status.jsx index fac902d9..b000f483 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -743,30 +743,35 @@ function Media({ media, showOriginal, onClick = () => {} }) { rgbAverageColor && `rgb(${rgbAverageColor.join(',')})`, }} onClick={(e) => { - if (isGIF) { + if (showOriginal && isGIF) { try { - videoRef.current?.pause(); + if (videoRef.current.paused) { + videoRef.current.play(); + } else { + videoRef.current.pause(); + } } catch (e) {} } onClick(e); }} onMouseEnter={() => { - if (isGIF) { + if (!showOriginal && isGIF) { try { - videoRef.current?.play(); + videoRef.current.play(); } catch (e) {} } }} onMouseLeave={() => { - if (isGIF) { + if (!showOriginal && isGIF) { try { - videoRef.current?.pause(); + videoRef.current.pause(); } catch (e) {} } }} > {showOriginal ? ( ) : isGIF ? (