diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js
index 346ceefc89..25be11be50 100644
--- a/src/components/structures/MatrixChat.js
+++ b/src/components/structures/MatrixChat.js
@@ -1058,6 +1058,7 @@ module.exports = React.createClass({
case this.PageTypes.RoomDirectory:
page_element =
if (!this.state.collapse_rhs) right_panel =
break;