mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 03:43:42 +01:00
Fix CW auto-expanding if collapsed toots are disabled
This commit is contained in:
parent
183f993b01
commit
66b1174d25
1 changed files with 3 additions and 1 deletions
|
@ -233,7 +233,9 @@ uncollapse our status accordingly.
|
|||
|
||||
componentWillReceiveProps (nextProps) {
|
||||
if (!nextProps.settings.getIn(['collapsed', 'enabled'])) {
|
||||
this.setExpansion(true);
|
||||
if (this.state.isExpanded === false) {
|
||||
this.setExpansion(null);
|
||||
}
|
||||
} else if (
|
||||
nextProps.collapse !== this.props.collapse &&
|
||||
nextProps.collapse !== undefined
|
||||
|
|
Loading…
Reference in a new issue