From 895172d4981848121a69245244316975b4911250 Mon Sep 17 00:00:00 2001 From: wmwragg Date: Mon, 22 Aug 2016 16:42:08 +0100 Subject: [PATCH] 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 --- src/components/structures/RoomSubList.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/structures/RoomSubList.js b/src/components/structures/RoomSubList.js index c5507e76..50db2b41 100644 --- a/src/components/structures/RoomSubList.js +++ b/src/components/structures/RoomSubList.js @@ -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();