Send toggle handler for the cancel button in the pinned events pane
Signed-off-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
parent
874d383a8f
commit
f71e07670d
1 changed files with 1 additions and 1 deletions
|
@ -1596,7 +1596,7 @@ module.exports = React.createClass({
|
||||||
onCancelClick={this.onCancelSearchClick} onSearch={this.onSearch}/>;
|
onCancelClick={this.onCancelSearchClick} onSearch={this.onSearch}/>;
|
||||||
} else if (this.state.showingPinned) {
|
} else if (this.state.showingPinned) {
|
||||||
hideCancel = true; // has own cancel
|
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") {
|
} else if (!myMember || myMember.membership !== "join") {
|
||||||
// We do have a room object for this room, but we're not currently in it.
|
// 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.
|
// We may have a 3rd party invite to it.
|
||||||
|
|
Loading…
Reference in a new issue