Skip to content

Commit e3342e3

Browse files
author
Luke Barnard
committed
Fix RoomSubList (RoomSubListHeader was removed)
1 parent 67ecd94 commit e3342e3

1 file changed

Lines changed: 2 additions & 29 deletions

File tree

‎src/components/structures/RoomSubList.js‎

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -555,20 +555,7 @@ var RoomSubList = React.createClass({
555555

556556
return connectDropTarget(
557557
<div>
558-
<RoomSubListHeader
559-
ref='header'
560-
label={ this.props.label }
561-
tagName={ this.props.tagName }
562-
roomCount={ roomCount }
563-
collapsed={ this.props.collapsed }
564-
hidden={ this.state.hidden }
565-
incomingCall={ this.props.incomingCall }
566-
isIncomingCallRoom={ isIncomingCallRoom }
567-
roomNotificationCount={ this.roomNotificationCount() }
568-
onClick={ this.onClick }
569-
onHeaderClick={ this.props.onHeaderClick }
570-
headerItems={this.props.headerItems}
571-
/>
558+
{ this._getHeaderJsx() }
572559
{ subList }
573560
</div>
574561
);
@@ -577,21 +564,7 @@ var RoomSubList = React.createClass({
577564
var Loader = sdk.getComponent("elements.Spinner");
578565
return (
579566
<div className="mx_RoomSubList">
580-
{ this.props.alwaysShowHeader ?
581-
<RoomSubListHeader
582-
ref='header'
583-
label={ this.props.label }
584-
tagName={ this.props.tagName }
585-
roomCount={ roomCount }
586-
collapsed={ this.props.collapsed }
587-
hidden={ this.state.hidden }
588-
isIncomingCallRoom={ isIncomingCallRoom }
589-
roomNotificationCount={ this.roomNotificationCount() }
590-
onClick={ this.onClick }
591-
onHeaderClick={ this.props.onHeaderClick }
592-
headerItems={this.props.headerItems}
593-
/>
594-
: undefined }
567+
{ this.props.alwaysShowHeader ? this._getHeaderJsx() : undefined }
595568
{ (this.props.showSpinner && !this.state.hidden) ? <Loader /> : undefined }
596569
</div>
597570
);

0 commit comments

Comments
 (0)