From ca1bb0f70090847d163139fd7f0f7364a7b3be8d Mon Sep 17 00:00:00 2001 From: wmwragg Date: Tue, 13 Sep 2016 14:28:03 +0100 Subject: [PATCH] Added new Invite button in the RHS footer which calls the new 'view_invite' action --- src/components/structures/MatrixChat.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index 696be0f7ac..4d4b47ce32 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -373,6 +373,9 @@ module.exports = React.createClass({ case 'view_create_chat': this._createChat(); break; + case 'view_invite': + this._invite(payload.roomId); + break; case 'notifier_enabled': this.forceUpdate(); break; @@ -516,6 +519,15 @@ module.exports = React.createClass({ }); }, + _invite: function() { + var ChatInviteDialog = sdk.getComponent("dialogs.ChatInviteDialog"); + Modal.createDialog(ChatInviteDialog, { + title: "Invite new room members", + button: "Send Invites", + description: "Who would you like to add to this room?" + }); + }, + // update scrollStateMap according to the current scroll state of the // room view. _updateScrollMap: function() {