diff --git a/src/components/views/rooms/EventTile.js b/src/components/views/rooms/EventTile.js index 8187e55fd6..cfff797e7d 100644 --- a/src/components/views/rooms/EventTile.js +++ b/src/components/views/rooms/EventTile.js @@ -268,6 +268,13 @@ module.exports = React.createClass({ this.readAvatarNode = ReactDom.findDOMNode(node); }, + onMemberAvatarClicked: function(sender) { + dispatcher.dispatch({ + action: 'view_user', + member: sender + }); + }, + render: function() { var MessageTimestamp = sdk.getComponent('messages.MessageTimestamp'); var SenderProfile = sdk.getComponent('messages.SenderProfile'); @@ -305,23 +312,13 @@ module.exports = React.createClass({ var readAvatars = this.getReadAvatars(); - function onMemberAvatarClicked(sender) { - return () => { - //var member = new Matrix.RoomMember(null, userId); - //if (!member) { return; } - dispatcher.dispatch({ - action: 'view_user', - member: sender - }); - }; - } - var avatar, sender; if (!this.props.continuation) { if (this.props.mxEvent.sender) { avatar = ( -