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

pull/2028/head
wmwragg 2016-08-22 16:42:08 +01:00
parent 71f73d8df2
commit 895172d498
1 changed files with 7 additions and 0 deletions

View File

@ -137,6 +137,13 @@ var RoomSubList = React.createClass({
this.setState({ capTruncate : true });
// Truncated list
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();