You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-07 21:23:00 +03:00
Added new Invite button in the RHS footer which calls the new 'view_invite' action
This commit is contained in:
@@ -373,6 +373,9 @@ module.exports = React.createClass({
|
|||||||
case 'view_create_chat':
|
case 'view_create_chat':
|
||||||
this._createChat();
|
this._createChat();
|
||||||
break;
|
break;
|
||||||
|
case 'view_invite':
|
||||||
|
this._invite(payload.roomId);
|
||||||
|
break;
|
||||||
case 'notifier_enabled':
|
case 'notifier_enabled':
|
||||||
this.forceUpdate();
|
this.forceUpdate();
|
||||||
break;
|
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
|
// update scrollStateMap according to the current scroll state of the
|
||||||
// room view.
|
// room view.
|
||||||
_updateScrollMap: function() {
|
_updateScrollMap: function() {
|
||||||
|
Reference in New Issue
Block a user