mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-28 14:43:42 +01:00
In detailed status view, take displayMedia setting into account when changing media
Fixes #819
This commit is contained in:
parent
a100f05687
commit
86527024aa
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ export default class MediaGallery extends React.PureComponent {
|
||||||
|
|
||||||
componentWillReceiveProps (nextProps) {
|
componentWillReceiveProps (nextProps) {
|
||||||
if (!is(nextProps.media, this.props.media)) {
|
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…
Reference in a new issue