fix avatar clicking in memberinfo

This commit is contained in:
Matthew Hodgson 2016-08-25 16:20:31 +01:00
parent c1db6fb42d
commit 36d8fa9786

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