Fix video modal

This commit is contained in:
Thibaut Girka 2018-04-09 00:11:10 +02:00
parent 2a4785a250
commit 27ad9247a3

View file

@ -35,9 +35,9 @@ export default class DetailedStatus extends ImmutablePureComponent {
e.stopPropagation();
}
// handleOpenVideo = startTime => {
// this.props.onOpenVideo(this.props.status.getIn(['media_attachments', 0]), startTime);
// }
handleOpenVideo = startTime => {
this.props.onOpenVideo(this.props.status.getIn(['media_attachments', 0]), startTime);
}
render () {
const status = this.props.status.get('reblog') ? this.props.status.get('reblog') : this.props.status;
@ -61,7 +61,7 @@ export default class DetailedStatus extends ImmutablePureComponent {
sensitive={status.get('sensitive')}
letterbox={settings.getIn(['media', 'letterbox'])}
fullwidth={settings.getIn(['media', 'fullwidth'])}
onOpenVideo={this.props.onOpenVideo}
onOpenVideo={this.handleOpenVideo}
autoplay
/>
);