diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index c3a07dd104..c3c630569d 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -883,6 +883,16 @@ module.exports = React.createClass({ }); }, + onRejectThreepidInviteButtonClicked: function(ev) { + // We can reject 3pid invites in the same way that we accept them, + // using /leave rather than /join. In the short term though, we + // just ignore them. + // https://github.com/vector-im/vector-web/issues/1134 + dis.dispatch({ + action: 'view_room_directory', + }); + }, + onSearchClick: function() { this.setState({ searching: true }); }, @@ -1089,6 +1099,7 @@ module.exports = React.createClass({
); } diff --git a/src/components/views/rooms/RoomPreviewBar.js b/src/components/views/rooms/RoomPreviewBar.js index eb57a0d913..50159401cc 100644 --- a/src/components/views/rooms/RoomPreviewBar.js +++ b/src/components/views/rooms/RoomPreviewBar.js @@ -25,6 +25,9 @@ module.exports = React.createClass({ propTypes: { onJoinClick: React.PropTypes.func, onRejectClick: React.PropTypes.func, + + // if inviterName is specified, the preview bar will shown an invite to the room. + // You should also specify onRejectClick if specifiying inviterName inviterName: React.PropTypes.string, canJoin: React.PropTypes.bool, canPreview: React.PropTypes.bool,