Fixed #66 disabling collapse collapses all toots

This commit is contained in:
Ondřej Hruška 2017-07-11 20:48:31 +02:00
parent 1968d560e2
commit 29cb8849d2

View file

@ -238,7 +238,7 @@ uncollapse our status accordingly.
componentWillReceiveProps (nextProps) {
if (!nextProps.settings.getIn(['collapsed', 'enabled'])) {
this.setExpansion(false);
this.setExpansion(true);
} else if (
nextProps.collapse !== this.props.collapse &&
nextProps.collapse !== undefined