Skip to content

Commit

Permalink
Fix media attachments not being hidden in report modal in glitch flavor
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire committed Dec 29, 2023
1 parent df43bb1 commit eb342a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default class MediaAttachments extends ImmutablePureComponent {
lang: PropTypes.string,
height: PropTypes.number,
width: PropTypes.number,
revealed: PropTypes.bool,
visible: PropTypes.bool,
};

static defaultProps = {
Expand Down Expand Up @@ -52,7 +52,7 @@ export default class MediaAttachments extends ImmutablePureComponent {
};

render () {
const { status, width, height, revealed } = this.props;
const { status, width, height, visible } = this.props;
const mediaAttachments = status.get('media_attachments');
const language = status.getIn(['language', 'translation']) || status.get('language') || this.props.lang;

Expand Down Expand Up @@ -100,7 +100,7 @@ export default class MediaAttachments extends ImmutablePureComponent {
height={height}
inline
sensitive={status.get('sensitive')}
revealed={revealed}
visible={visible}
onOpenVideo={noop}
/>
)}
Expand All @@ -115,7 +115,7 @@ export default class MediaAttachments extends ImmutablePureComponent {
lang={language}
sensitive={status.get('sensitive')}
defaultWidth={width}
revealed={revealed}
visible={visible}
height={height}
onOpenMedia={noop}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class StatusCheckBox extends PureComponent {
</div>
</div>

<StatusContent status={status} media={<MediaAttachments status={status} revealed={false} />} />
<StatusContent status={status} media={<MediaAttachments status={status} visible={false} />} />
</div>
);

Expand Down

0 comments on commit eb342a6

Please sign in to comment.