You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-17 17:42:41 +03:00
Guard against missing members in avatars
Part of https://github.com/vector-im/riot-web/issues/11744
This commit is contained in:
@@ -55,7 +55,7 @@ module.exports = createReactClass({
|
||||
},
|
||||
|
||||
_getState: function(props) {
|
||||
if (props.member) {
|
||||
if (props.member && props.member.name) {
|
||||
return {
|
||||
name: props.member.name,
|
||||
title: props.title || props.member.userId,
|
||||
|
||||
Reference in New Issue
Block a user