mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Null check userId on member. Fixes #5.
This commit is contained in:
parent
e3e49daddb
commit
11aa6f8c37
@ -27,7 +27,10 @@ module.exports = {
|
||||
resizeMethod
|
||||
);
|
||||
if (!url) {
|
||||
url = this.defaultAvatarUrlForString(member.userId);
|
||||
// member can be null here currently since on invites, the JS SDK
|
||||
// does not have enough info to build a RoomMember object for
|
||||
// the inviter.
|
||||
url = this.defaultAvatarUrlForString(member ? member.userId : '');
|
||||
}
|
||||
return url;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user