Merge pull request #469 from matrix-org/wmwragg/chat-multi-invite

Wmwragg/chat multi invite
This commit is contained in:
Matthew Hodgson 2016-09-13 19:30:02 +01:00 committed by GitHub
commit 8508e006f0
7 changed files with 587 additions and 179 deletions

View file

@ -385,6 +385,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;
@ -524,7 +527,17 @@ module.exports = React.createClass({
_createChat: function() {
var ChatInviteDialog = sdk.getComponent("dialogs.ChatInviteDialog");
Modal.createDialog(ChatInviteDialog, {
title: "Start a one to one chat",
title: "Start a new chat",
});
},
_invite: function(roomId) {
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?",
roomId: roomId,
});
},