Fix thread CW expansion not being reset when changing threads

lolsob-rspec
Thibaut Girka 2018-09-16 12:15:58 +02:00 committed by ThibG
parent e02703bb91
commit 495b50e3ab
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ export default class Status extends ImmutablePureComponent {
if (nextProps.params.statusId !== this.props.params.statusId && nextProps.params.statusId) {
this._scrolledIntoView = false;
this.props.dispatch(fetchStatus(nextProps.params.statusId));
this.setState({ isExpanded: autoUnfoldCW(nextProps.settings, nextProps.status) });
this.setState({ isExpanded: autoUnfoldCW(nextProps.settings, nextProps.status), threadExpanded: undefined });
}
}