diff --git a/src/components/structures/RoomSubList.js b/src/components/structures/RoomSubList.js index 003c0541a2..0cf719d507 100644 --- a/src/components/structures/RoomSubList.js +++ b/src/components/structures/RoomSubList.js @@ -50,7 +50,6 @@ const RoomSubList = React.createClass({ showSpinner: PropTypes.bool, // true to show a spinner if 0 elements when expanded collapsed: PropTypes.bool.isRequired, // is LeftPanel collapsed? onHeaderClick: PropTypes.func, - alwaysShowHeader: PropTypes.bool, incomingCall: PropTypes.object, searchFilter: PropTypes.string, headerItems: PropTypes.node, // content shown in the sublist header @@ -371,7 +370,7 @@ const RoomSubList = React.createClass({ return (
- {this.props.alwaysShowHeader ? this._getHeaderJsx() : undefined} + { this._getHeaderJsx() } { content }
); diff --git a/src/components/views/rooms/RoomList.js b/src/components/views/rooms/RoomList.js index ad4d348b2a..b84f3c0cf0 100644 --- a/src/components/views/rooms/RoomList.js +++ b/src/components/views/rooms/RoomList.js @@ -501,7 +501,6 @@ module.exports = React.createClass({ tagName: "im.vector.fake.direct", headerItems: this._getHeaderItems('im.vector.fake.direct'), order: "recent", - alwaysShowHeader: true, onAddRoom: () => {dis.dispatch({action: 'view_create_chat'})}, }, { @@ -536,7 +535,6 @@ module.exports = React.createClass({ list: self.state.lists['im.vector.fake.archived'], label: _t('Historical'), order: "recent", - alwaysShowHeader: true, startAsHidden: true, showSpinner: self.state.isLoadingLeftRooms, onHeaderClick: self.onArchivedHeaderClick,