fix avatar clicking in memberinfo
This commit is contained in:
parent
c1db6fb42d
commit
36d8fa9786
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue