add local setting to auto reveal media behind cw

This commit is contained in:
ash lea
2019-03-10 15:34:51 -04:00
committed by ThibG
parent 1bf035fb67
commit f534f4869e
6 changed files with 23 additions and 3 deletions

View File

@ -119,6 +119,12 @@ export default class Video extends React.PureComponent {
revealed: this.props.revealed === undefined ? (displayMedia !== 'hide_all' && !this.props.sensitive || displayMedia === 'show_all') : this.props.revealed,
};
componentWillReceiveProps (nextProps) {
if (nextProps.revealed === true) {
this.setState({ revealed: true });
}
}
// hard coded in components.scss
// any way to get ::before values programatically?
volWidth = 50;