This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 828
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 = ( | ||
<div className="mx_EventTile_avatar" style={{cursor: "pointer"}}> | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ara4n
via email
Author
Member
|
||
<MemberAvatar member={this.props.mxEvent.sender} width={24} height={24} onClick={onMemberAvatarClicked(this.props.mxEvent.sender)} /> | ||
<div className="mx_EventTile_avatar"> | ||
<MemberAvatar member={this.props.mxEvent.sender} width={24} height={24} | ||
onClick={ this.onMemberAvatarClicked.bind(this, this.props.mxEvent.sender) } /> | ||
</div> | ||
); | ||
} | ||
|
Did we lose the
cursor: pointer
here? (or is that something that should go into vector-web?)