Merge pull request #2181 from vector-im/wmwragg/chat-multi-invite

Wmwragg/chat multi invite
This commit is contained in:
Matthew Hodgson 2016-09-13 19:31:05 +01:00 committed by GitHub
commit c6a9614372
11 changed files with 263 additions and 35 deletions

View file

@ -109,6 +109,14 @@ module.exports = React.createClass({
}
},
onInviteButtonClick: function() {
// call ChatInviteDialog
dis.dispatch({
action: 'view_invite',
roomId: this.props.roomId,
});
},
onRoomStateMember: function(ev, state, member) {
// redraw the badge on the membership list
if (this.state.phase == this.Phase.MemberList && member.roomId === this.props.roomId) {
@ -236,6 +244,12 @@ module.exports = React.createClass({
</div>
{ panel }
<div className="mx_RightPanel_footer">
<div className="mx_RightPanel_invite" >
<div className="mx_RightPanel_icon" onClick={ this.onInviteButtonClick } >
<TintableSvg src="img/icon-invite-people.svg" width="35" height="35" />
</div>
<div className="mx_RightPanel_message">Invite to this room</div>
</div>
</div>
</aside>
);