Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Always thumbnail for GIFs
Browse files Browse the repository at this point in the history
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 element-hq/element-web#9658
  • Loading branch information
jryans authored and dbkr committed May 15, 2019
1 parent 3ea187a commit 6ea590c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/views/messages/MImageBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
) {
Expand Down

0 comments on commit 6ea590c

Please sign in to comment.