diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js
index 934d22b039..966752268c 100644
--- a/src/components/structures/RoomView.js
+++ b/src/components/structures/RoomView.js
@@ -94,6 +94,9 @@ module.exports = React.createClass({
// ID of an event to highlight. If undefined, no event will be highlighted.
// Typically this will either be the same as 'eventId', or undefined.
highlightedEventId: React.PropTypes.string,
+
+ // is the RightPanel collapsed?
+ rightPanelCollapsed: React.PropTypes.bool,
},
getInitialState: function() {
@@ -1214,7 +1217,11 @@ module.exports = React.createClass({
// We've got to this room by following a link, possibly a third party invite.
return (
-
+
- );
+ );
}
}
diff --git a/src/components/views/rooms/RoomHeader.js b/src/components/views/rooms/RoomHeader.js
index 9a60c6ad01..caf19e0b69 100644
--- a/src/components/views/rooms/RoomHeader.js
+++ b/src/components/views/rooms/RoomHeader.js
@@ -35,6 +35,7 @@ module.exports = React.createClass({
oobData: React.PropTypes.object,
editing: React.PropTypes.bool,
saving: React.PropTypes.bool,
+ rightPanelCollapsed: React.PropTypes.bool,
onSettingsClick: React.PropTypes.func,
onSaveClick: React.PropTypes.func,
onSearchClick: React.PropTypes.func,
@@ -264,6 +265,11 @@ module.exports = React.createClass({
;
}
+ var rightPanel_buttons;
+ if (this.props.rightPanelCollapsed) {
+ // TODO: embed the RightPanel header in here if it's collapsed.
+ }
+
var right_row;
if (!this.props.editing) {
right_row =
@@ -273,6 +279,7 @@ module.exports = React.createClass({
+ { rightPanel_buttons }
;
}