Send toggle handler for the cancel button in the pinned events pane

Signed-off-by: Travis Ralston <travpc@gmail.com>
pull/21833/head
Travis Ralston 2017-09-28 17:00:26 -06:00
parent 874d383a8f
commit f71e07670d
1 changed files with 1 additions and 1 deletions

View File

@ -1596,7 +1596,7 @@ module.exports = React.createClass({
onCancelClick={this.onCancelSearchClick} onSearch={this.onSearch}/>;
} else if (this.state.showingPinned) {
hideCancel = true; // has own cancel
aux = <PinnedEventsPanel room={this.state.room} />;
aux = <PinnedEventsPanel room={this.state.room} onCancelClick={this.onPinnedClick} />;
} else if (!myMember || myMember.membership !== "join") {
// We do have a room object for this room, but we're not currently in it.
// We may have a 3rd party invite to it.