diff --git a/src/components/structures/UserSettings.js b/src/components/structures/UserSettings.js index 49674957bc..a33095b8e8 100644 --- a/src/components/structures/UserSettings.js +++ b/src/components/structures/UserSettings.js @@ -280,6 +280,10 @@ module.exports = React.createClass({ Modal.createDialog(DeactivateAccountDialog, {}); }, + _onRejectAllInvitesClicked: function() { + console.log("yup"); + }, + _renderUserInterfaceSettings: function() { var client = MatrixClientPeg.get(); @@ -418,6 +422,24 @@ module.exports = React.createClass({ ; }, + _renderBulkOptions: function() { + let invitedRooms = MatrixClientPeg.get().getRooms().filter((r) => { + return r.hasMembershipState(this._me, "invite"); + }); + if (invitedRooms.length === 0) { + return null; + } + return
+

Bulk Options

+
+ +
+
; + }, + render: function() { var self = this; var Loader = sdk.getComponent("elements.Spinner"); @@ -580,6 +602,7 @@ module.exports = React.createClass({ {this._renderLabs()} {this._renderDevicesPanel()} {this._renderCryptoInfo()} + {this._renderBulkOptions()}

Advanced