fix avatar clicking in memberinfo
parent
c1db6fb42d
commit
36d8fa9786
|
@ -531,7 +531,7 @@ module.exports = React.createClass({
|
|||
},
|
||||
|
||||
onMemberAvatarClick: function () {
|
||||
var avatarUrl = this.props.member.user.avatarUrl;
|
||||
var avatarUrl = this.props.member.user ? this.props.member.user.avatarUrl : this.props.member.events.member.getContent().avatar_url;
|
||||
if(!avatarUrl) return;
|
||||
|
||||
var httpUrl = MatrixClientPeg.get().mxcUrlToHttp(avatarUrl);
|
||||
|
|
Loading…
Reference in New Issue