Add MemberInfo for 3pid invites and support revoking those invites
Fixes https://github.com/vector-im/riot-web/issues/625 Fixes https://github.com/vector-im/riot-web/issues/6411 Fixes https://github.com/vector-im/riot-web/issues/5490
This commit is contained in:
parent
3cd4b6992d
commit
99dc2c4738
6 changed files with 176 additions and 0 deletions
|
@ -347,6 +347,13 @@ module.exports = React.createClass({
|
|||
});
|
||||
},
|
||||
|
||||
_onPending3pidInviteClick: function(inviteEvent) {
|
||||
dis.dispatch({
|
||||
action: 'view_3pid_invite',
|
||||
event: inviteEvent,
|
||||
});
|
||||
},
|
||||
|
||||
_filterMembers: function(members, membership, query) {
|
||||
return members.filter((m) => {
|
||||
if (query) {
|
||||
|
@ -408,6 +415,7 @@ module.exports = React.createClass({
|
|||
return <EntityTile key={e.getStateKey()}
|
||||
name={e.getContent().display_name}
|
||||
suppressOnHover={true}
|
||||
onClick={() => this._onPending3pidInviteClick(e)}
|
||||
/>;
|
||||
}));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue