Browse Source

In detailed status view, take displayMedia setting into account when changing media

Fixes #819
closed-social-glitch-2
Thibaut Girka 6 years ago
committed by ThibG
parent
commit
86527024aa
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/flavours/glitch/components/media_gallery.js

+ 1
- 1
app/javascript/flavours/glitch/components/media_gallery.js View File

@ -232,7 +232,7 @@ export default class MediaGallery extends React.PureComponent {
componentWillReceiveProps (nextProps) {
if (!is(nextProps.media, this.props.media)) {
this.setState({ visible: !nextProps.sensitive });
this.setState({ visible: nextProps.revealed === undefined ? (displayMedia !== 'hide_all' && !nextProps.sensitive || displayMedia === 'show_all') : nextProps.revealed });
}
}

Loading…
Cancel
Save