You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Always thumbnail for GIFs
When displaying a GIF, we always want to thumbnail so that we can properly respect the user's GIF autoplay setting (which relies on thumbnailing to produce the static preview image). Fixes https://github.com/vector-im/riot-web/issues/9658
This commit is contained in:
@@ -200,6 +200,7 @@ export default class MImageBody extends React.Component {
|
|||||||
// downloading the original:
|
// downloading the original:
|
||||||
const info = content.info;
|
const info = content.info;
|
||||||
if (
|
if (
|
||||||
|
this._isGif() ||
|
||||||
pixelRatio === 1.0 ||
|
pixelRatio === 1.0 ||
|
||||||
(!info || !info.w || !info.h || !info.size)
|
(!info || !info.w || !info.h || !info.size)
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user