From 36d8fa9786ffcd90b370bd4bfb0d76135867d9c1 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Thu, 25 Aug 2016 16:20:31 +0100 Subject: [PATCH] fix avatar clicking in memberinfo --- src/components/views/rooms/MemberInfo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/MemberInfo.js b/src/components/views/rooms/MemberInfo.js index 59e186da06..c02b009c39 100644 --- a/src/components/views/rooms/MemberInfo.js +++ b/src/components/views/rooms/MemberInfo.js @@ -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);