Browse Source

Update MediaGallery and Video props when folding/unfolding CWs in detailed statuses

closed-social-glitch-2
Thibaut Girka 6 years ago
committed by ThibG
parent
commit
6b6e633c09
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      app/javascript/flavours/glitch/features/status/components/detailed_status.js

+ 2
- 0
app/javascript/flavours/glitch/features/status/components/detailed_status.js View File

@ -65,6 +65,7 @@ export default class DetailedStatus extends ImmutablePureComponent {
sensitive={status.get('sensitive')}
letterbox={settings.getIn(['media', 'letterbox'])}
fullwidth={settings.getIn(['media', 'fullwidth'])}
preventPlayback={!expanded}
onOpenVideo={this.handleOpenVideo}
autoplay
/>
@ -78,6 +79,7 @@ export default class DetailedStatus extends ImmutablePureComponent {
media={status.get('media_attachments')}
letterbox={settings.getIn(['media', 'letterbox'])}
fullwidth={settings.getIn(['media', 'fullwidth'])}
hidden={!expanded}
onOpenMedia={this.props.onOpenMedia}
/>
);

Loading…
Cancel
Save