Play gif if no user

This commit is contained in:
mgabdev 2020-01-17 18:24:10 -05:00
parent 755835d2bd
commit 5a8d386683

View File

@ -59,7 +59,7 @@ class Item extends React.PureComponent {
hoverToPlay () { hoverToPlay () {
const { attachment } = this.props; const { attachment } = this.props;
return !autoPlayGif && attachment.get('type') === 'gifv'; return autoPlayGif === false && attachment.get('type') === 'gifv';
} }
handleClick = (e) => { handleClick = (e) => {
@ -180,7 +180,7 @@ class Item extends React.PureComponent {
</a> </a>
); );
} else if (attachment.get('type') === 'gifv') { } else if (attachment.get('type') === 'gifv') {
const autoPlay = !isIOS() && autoPlayGif; const autoPlay = !isIOS() && autoPlayGif !== false;
thumbnail = ( thumbnail = (
<div className={classNames('media-gallery__gifv', { autoplay: autoPlay })}> <div className={classNames('media-gallery__gifv', { autoplay: autoPlay })}>