mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Little fixes on member list
This commit is contained in:
parent
0424ef07b3
commit
2ba4ad04d1
@ -1,10 +1,12 @@
|
||||
var dis = require("../../dispatcher");
|
||||
|
||||
var MatrixClientPeg = require("../../MatrixClientPeg");
|
||||
|
||||
module.exports = {
|
||||
onClick: function() {
|
||||
dis.dispatch({
|
||||
action: 'view_user',
|
||||
room_id: this.props.member.userId
|
||||
user_id: this.props.member.userId
|
||||
});
|
||||
},
|
||||
};
|
||||
|
@ -22,6 +22,7 @@ module.exports = {
|
||||
},*/
|
||||
|
||||
onRoomStateMember: function(ev, state, member) {
|
||||
var cli = MatrixClientPeg.get();
|
||||
this.setState({
|
||||
memberDict: cli.getRoom(this.props.roomId).currentState.members
|
||||
});
|
||||
|
@ -16,10 +16,9 @@ module.exports = React.createClass({
|
||||
return Object.keys(that.state.memberDict).map(function(userId) {
|
||||
var m = that.state.memberDict[userId];
|
||||
return (
|
||||
<li>
|
||||
<li key={userId}>
|
||||
<MemberTile
|
||||
member={m}
|
||||
key={userId}
|
||||
/>
|
||||
</li>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user