fix avatar clicking in memberinfo

pull/21833/head
Matthew Hodgson 2016-08-25 16:20:31 +01:00
parent c1db6fb42d
commit 36d8fa9786
1 changed files with 1 additions and 1 deletions

View File

@ -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);