remove alwaysShowHeader, as now onAddRoom prop determines this

This commit is contained in:
Bruno Windels 2018-10-19 14:43:02 +02:00
parent 5091aa3b43
commit d48f19bc19
2 changed files with 1 additions and 4 deletions

View file

@ -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 (
<div className="mx_RoomSubList">
{this.props.alwaysShowHeader ? this._getHeaderJsx() : undefined}
{ this._getHeaderJsx() }
{ content }
</div>
);