mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix CW auto-expanding if collapsed toots are disabled
This commit is contained in:
parent
183f993b01
commit
66b1174d25
@ -233,7 +233,9 @@ uncollapse our status accordingly.
|
|||||||
|
|
||||||
componentWillReceiveProps (nextProps) {
|
componentWillReceiveProps (nextProps) {
|
||||||
if (!nextProps.settings.getIn(['collapsed', 'enabled'])) {
|
if (!nextProps.settings.getIn(['collapsed', 'enabled'])) {
|
||||||
this.setExpansion(true);
|
if (this.state.isExpanded === false) {
|
||||||
|
this.setExpansion(null);
|
||||||
|
}
|
||||||
} else if (
|
} else if (
|
||||||
nextProps.collapse !== this.props.collapse &&
|
nextProps.collapse !== this.props.collapse &&
|
||||||
nextProps.collapse !== undefined
|
nextProps.collapse !== undefined
|
||||||
|
Loading…
Reference in New Issue
Block a user