Commit 5a8d3866 authored by mgabdev's avatar mgabdev

Play gif if no user

parent 755835d2
......@@ -59,7 +59,7 @@ class Item extends React.PureComponent {
hoverToPlay () {
const { attachment } = this.props;
return !autoPlayGif && attachment.get('type') === 'gifv';
return autoPlayGif === false && attachment.get('type') === 'gifv';
}
handleClick = (e) => {
......@@ -180,7 +180,7 @@ class Item extends React.PureComponent {
</a>
);
} else if (attachment.get('type') === 'gifv') {
const autoPlay = !isIOS() && autoPlayGif;
const autoPlay = !isIOS() && autoPlayGif !== false;
thumbnail = (
<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