mirror of https://github.com/vector-im/riot-web
Send toggle handler for the cancel button in the pinned events pane
Signed-off-by: Travis Ralston <travpc@gmail.com>pull/21833/head
parent
874d383a8f
commit
f71e07670d
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue