Commit 5a8d3866 authored by mgabdev's avatar mgabdev

Play gif if no user

parent 755835d2
...@@ -59,7 +59,7 @@ class Item extends React.PureComponent { ...@@ -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 { ...@@ -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 })}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment