diff --git a/src/controllers/molecules/MemberTile.js b/src/controllers/molecules/MemberTile.js index e23ac290..41b350a9 100644 --- a/src/controllers/molecules/MemberTile.js +++ b/src/controllers/molecules/MemberTile.js @@ -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 }); }, }; diff --git a/src/controllers/organisms/MemberList.js b/src/controllers/organisms/MemberList.js index 191db90d..66243a0a 100644 --- a/src/controllers/organisms/MemberList.js +++ b/src/controllers/organisms/MemberList.js @@ -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 }); diff --git a/src/views/organisms/MemberList.js b/src/views/organisms/MemberList.js index 499cf128..e76f9cb6 100644 --- a/src/views/organisms/MemberList.js +++ b/src/views/organisms/MemberList.js @@ -16,10 +16,9 @@ module.exports = React.createClass({ return Object.keys(that.state.memberDict).map(function(userId) { var m = that.state.memberDict[userId]; return ( -