mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
Fix bug where clicking on the email tile didn't work
This commit is contained in:
parent
70ed0be389
commit
2027ed9f49
@ -35,10 +35,6 @@ module.exports = React.createClass({
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
getInitialState: function() {
|
|
||||||
return {};
|
|
||||||
},
|
|
||||||
|
|
||||||
componentWillMount: function() {
|
componentWillMount: function() {
|
||||||
this._room = MatrixClientPeg.get().getRoom(this.props.roomId);
|
this._room = MatrixClientPeg.get().getRoom(this.props.roomId);
|
||||||
this._emailEntity = null;
|
this._emailEntity = null;
|
||||||
@ -49,10 +45,14 @@ module.exports = React.createClass({
|
|||||||
this._userList = MatrixClientPeg.get().getUsers().filter((u) => {
|
this._userList = MatrixClientPeg.get().getUsers().filter((u) => {
|
||||||
return !this._room.hasMembershipState(u.userId, "join");
|
return !this._room.hasMembershipState(u.userId, "join");
|
||||||
});
|
});
|
||||||
console.log("%s users", this._userList.length);
|
},
|
||||||
|
|
||||||
|
onInvite: function(ev) {
|
||||||
|
this.props.onInvite(this._input);
|
||||||
},
|
},
|
||||||
|
|
||||||
onSearchQueryChanged: function(input) {
|
onSearchQueryChanged: function(input) {
|
||||||
|
this._input = input;
|
||||||
var EntityTile = sdk.getComponent("rooms.EntityTile");
|
var EntityTile = sdk.getComponent("rooms.EntityTile");
|
||||||
var BaseAvatar = sdk.getComponent("avatars.BaseAvatar");
|
var BaseAvatar = sdk.getComponent("avatars.BaseAvatar");
|
||||||
|
|
||||||
@ -68,7 +68,7 @@ module.exports = React.createClass({
|
|||||||
<EntityTile key="dynamic_invite_tile" suppressOnHover={true} showInviteButton={true}
|
<EntityTile key="dynamic_invite_tile" suppressOnHover={true} showInviteButton={true}
|
||||||
avatarJsx={ <BaseAvatar name="@" width={36} height={36} /> }
|
avatarJsx={ <BaseAvatar name="@" width={36} height={36} /> }
|
||||||
className="mx_EntityTile_invitePlaceholder"
|
className="mx_EntityTile_invitePlaceholder"
|
||||||
presenceState="online" onClick={this.props.onInvite} name={label} />,
|
presenceState="online" onClick={this.onInvite} name={label} />,
|
||||||
function(query) {
|
function(query) {
|
||||||
return true; // always show this
|
return true; // always show this
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user