1
0
Fork 1
forked from fedi/mastodon

Fix expanded statuses not always being scrolled into view (#21797)

This commit is contained in:
Claire 2022-11-28 16:42:04 +01:00 committed by talon
parent 86b2f41f33
commit 441722afc9

View file

@ -222,6 +222,10 @@ class Status extends ImmutablePureComponent {
this.props.dispatch(fetchStatus(nextProps.params.statusId));
}
if (nextProps.params.statusId && nextProps.ancestorsIds.size > this.props.ancestorsIds.size) {
this._scrolledIntoView = false;
}
if (nextProps.status && nextProps.status.get('id') !== this.state.loadedStatusId) {
this.setState({ showMedia: defaultMediaVisibility(nextProps.status), loadedStatusId: nextProps.status.get('id') });
}