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({