mirror of https://github.com/vector-im/riot-web
Little fixes on member list
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