mirror of https://github.com/vector-im/riot-web
Added catch to help get the Historical and any other weird sections into a sound state, so the states can then change correctly from then on
parent
71f73d8df2
commit
895172d498
|
@ -137,6 +137,13 @@ var RoomSubList = React.createClass({
|
||||||
this.setState({ capTruncate : true });
|
this.setState({ capTruncate : true });
|
||||||
// Truncated list
|
// Truncated list
|
||||||
this.setState({ truncateAt : TRUNCATE_AT });
|
this.setState({ truncateAt : TRUNCATE_AT });
|
||||||
|
} else {
|
||||||
|
// Catch any weird states the system gets into
|
||||||
|
isHidden = false;
|
||||||
|
this.setState({ hidden : isHidden });
|
||||||
|
this.setState({ capTruncate : true });
|
||||||
|
// Show truncated list
|
||||||
|
this.setState({ truncateAt : TRUNCATE_AT });
|
||||||
}
|
}
|
||||||
|
|
||||||
this.props.onShowMoreRooms();
|
this.props.onShowMoreRooms();
|
||||||
|
|
Loading…
Reference in New Issue