diff --git a/src/components/structures/CreateRoom.js b/src/components/structures/CreateRoom.js
index e7585e3640..ce4c0916d4 100644
--- a/src/components/structures/CreateRoom.js
+++ b/src/components/structures/CreateRoom.js
@@ -31,6 +31,7 @@ module.exports = React.createClass({
propTypes: {
onRoomCreated: React.PropTypes.func,
+ collapsedRhs: React.PropTypes.bool,
},
phases: {
@@ -245,7 +246,7 @@ module.exports = React.createClass({
return (
-
+
diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js
index c83da2b8f0..d93f5a6831 100644
--- a/src/components/structures/MatrixChat.js
+++ b/src/components/structures/MatrixChat.js
@@ -996,43 +996,49 @@ module.exports = React.createClass({
switch (this.state.page_type) {
case this.PageTypes.RoomView:
- page_element = (
-
- );
- right_panel =
+ page_element =
+ if (!this.state.collapse_rhs) right_panel =
break;
case this.PageTypes.UserSettings:
page_element =
- right_panel =
+ if (!this.state.collapse_rhs) right_panel =
break;
case this.PageTypes.CreateRoom:
- page_element =
- right_panel =
+ page_element =
+ if (!this.state.collapse_rhs) right_panel =
break;
case this.PageTypes.RoomDirectory:
- page_element =
- right_panel =
+ page_element =
+ if (!this.state.collapse_rhs) right_panel =
break;
case this.PageTypes.UserView:
page_element = null; // deliberately null for now
- right_panel =
+ right_panel =
break;
}
diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js
index 49d171f631..9c0c0080fa 100644
--- a/src/components/structures/RoomView.js
+++ b/src/components/structures/RoomView.js
@@ -96,7 +96,7 @@ module.exports = React.createClass({
highlightedEventId: React.PropTypes.string,
// is the RightPanel collapsed?
- rightPanelCollapsed: React.PropTypes.bool,
+ collapsedRhs: React.PropTypes.bool,
},
getInitialState: function() {
@@ -1359,7 +1359,7 @@ module.exports = React.createClass({
-
+
diff --git a/src/components/views/rooms/RoomHeader.js b/src/components/views/rooms/RoomHeader.js
index f7f4f50a84..036de649ca 100644
--- a/src/components/views/rooms/RoomHeader.js
+++ b/src/components/views/rooms/RoomHeader.js
@@ -35,7 +35,7 @@ module.exports = React.createClass({
oobData: React.PropTypes.object,
editing: React.PropTypes.bool,
saving: React.PropTypes.bool,
- rightPanelCollapsed: React.PropTypes.bool,
+ collapsedRhs: React.PropTypes.bool,
onSettingsClick: React.PropTypes.func,
onSaveClick: React.PropTypes.func,
onSearchClick: React.PropTypes.func,
@@ -287,8 +287,11 @@ module.exports = React.createClass({
}
var rightPanel_buttons;
- if (this.props.rightPanelCollapsed) {
- // TODO: embed the RightPanel header in here if it's collapsed.
+ if (this.props.collapsedRhs) {
+ rightPanel_buttons =
+
+
+
}
var right_row;