Fix media attachments not being hidden in report modal in glitch flavor

This commit is contained in:
Claire 2023-12-29 17:47:30 +01:00
parent df43bb124c
commit eb342a6082
2 changed files with 5 additions and 5 deletions

View file

@ -15,7 +15,7 @@ export default class MediaAttachments extends ImmutablePureComponent {
lang: PropTypes.string, lang: PropTypes.string,
height: PropTypes.number, height: PropTypes.number,
width: PropTypes.number, width: PropTypes.number,
revealed: PropTypes.bool, visible: PropTypes.bool,
}; };
static defaultProps = { static defaultProps = {
@ -52,7 +52,7 @@ export default class MediaAttachments extends ImmutablePureComponent {
}; };
render () { render () {
const { status, width, height, revealed } = this.props; const { status, width, height, visible } = this.props;
const mediaAttachments = status.get('media_attachments'); const mediaAttachments = status.get('media_attachments');
const language = status.getIn(['language', 'translation']) || status.get('language') || this.props.lang; const language = status.getIn(['language', 'translation']) || status.get('language') || this.props.lang;
@ -100,7 +100,7 @@ export default class MediaAttachments extends ImmutablePureComponent {
height={height} height={height}
inline inline
sensitive={status.get('sensitive')} sensitive={status.get('sensitive')}
revealed={revealed} visible={visible}
onOpenVideo={noop} onOpenVideo={noop}
/> />
)} )}
@ -115,7 +115,7 @@ export default class MediaAttachments extends ImmutablePureComponent {
lang={language} lang={language}
sensitive={status.get('sensitive')} sensitive={status.get('sensitive')}
defaultWidth={width} defaultWidth={width}
revealed={revealed} visible={visible}
height={height} height={height}
onOpenMedia={noop} onOpenMedia={noop}
/> />

View file

@ -45,7 +45,7 @@ class StatusCheckBox extends PureComponent {
</div> </div>
</div> </div>
<StatusContent status={status} media={<MediaAttachments status={status} revealed={false} />} /> <StatusContent status={status} media={<MediaAttachments status={status} visible={false} />} />
</div> </div>
); );