Skip to content
Snippets Groups Projects
Commit 11aa6f8c authored by David Baker's avatar David Baker
Browse files

Null check userId on member. Fixes #5.

parent e3e49dad
Branches
Tags
No related merge requests found
......@@ -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;
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment