diff --git a/src/components/views/rooms/RoomHeader.js b/src/components/views/rooms/RoomHeader.js index 036de649ca..431ad17dc2 100644 --- a/src/components/views/rooms/RoomHeader.js +++ b/src/components/views/rooms/RoomHeader.js @@ -20,6 +20,7 @@ var React = require('react'); var sdk = require('../../../index'); var MatrixClientPeg = require('../../../MatrixClientPeg'); var Modal = require("../../../Modal"); +var dis = require("../../../dispatcher"); var linkify = require('linkifyjs'); var linkifyElement = require('linkifyjs/element'); @@ -114,6 +115,10 @@ module.exports = React.createClass({ }).done(); }, + onCollapseRhsClick: function(ev) { + dis.dispatch({ action: 'hide_right_panel' }); + }, + /** * After editing the settings, get the new name for the room * @@ -289,8 +294,8 @@ module.exports = React.createClass({ var rightPanel_buttons; if (this.props.collapsedRhs) { rightPanel_buttons = -
- +
+
}