|
|
@ -4,7 +4,6 @@ import PropTypes from 'prop-types';
|
|
|
|
import { is } from 'immutable';
|
|
|
|
import { is } from 'immutable';
|
|
|
|
import IconButton from './icon_button';
|
|
|
|
import IconButton from './icon_button';
|
|
|
|
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
|
|
|
|
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
|
|
|
|
import { isIOS } from '../is_mobile';
|
|
|
|
|
|
|
|
import classNames from 'classnames';
|
|
|
|
import classNames from 'classnames';
|
|
|
|
import { autoPlayGif, cropImages, displayMedia, useBlurhash } from '../initial_state';
|
|
|
|
import { autoPlayGif, cropImages, displayMedia, useBlurhash } from '../initial_state';
|
|
|
|
import { debounce } from 'lodash';
|
|
|
|
import { debounce } from 'lodash';
|
|
|
@ -181,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() && this.getAutoPlay();
|
|
|
|
const autoPlay = this.getAutoPlay();
|
|
|
|
|
|
|
|
|
|
|
|
thumbnail = (
|
|
|
|
thumbnail = (
|
|
|
|
<div className={classNames('media-gallery__gifv', { autoplay: autoPlay })}>
|
|
|
|
<div className={classNames('media-gallery__gifv', { autoplay: autoPlay })}>
|
|
|
@ -195,6 +194,7 @@ class Item extends React.PureComponent {
|
|
|
|
onMouseEnter={this.handleMouseEnter}
|
|
|
|
onMouseEnter={this.handleMouseEnter}
|
|
|
|
onMouseLeave={this.handleMouseLeave}
|
|
|
|
onMouseLeave={this.handleMouseLeave}
|
|
|
|
autoPlay={autoPlay}
|
|
|
|
autoPlay={autoPlay}
|
|
|
|
|
|
|
|
playsInline
|
|
|
|
loop
|
|
|
|
loop
|
|
|
|
muted
|
|
|
|
muted
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|