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
pull/21833/head
J. Ryan Stinnett 2019-05-13 18:28:57 +01:00 committed by David Baker
parent 3ea187a524
commit 6ea590cf1f
1 changed files with 1 additions and 0 deletions

View File

@ -200,6 +200,7 @@ export default class MImageBody extends React.Component {
// downloading the original:
const info = content.info;
if (
this._isGif() ||
pixelRatio === 1.0 ||
(!info || !info.w || !info.h || !info.size)
) {