From ad453555b9e0ed73b33afb26616a09503645d33f Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sat, 17 Jul 2021 13:23:13 -0700 Subject: [PATCH] Avoid storing null for invite avatars. --- src/matrix/room/Invite.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/room/Invite.js b/src/matrix/room/Invite.js index ce400f01..86f9dcaa 100644 --- a/src/matrix/room/Invite.js +++ b/src/matrix/room/Invite.js @@ -180,7 +180,7 @@ export class Invite extends EventEmitter { _createData(inviteState, myInvite, inviter, summaryData, heroes) { const name = heroes ? heroes.roomName : summaryData.name; const avatarUrl = heroes ? heroes.roomAvatarUrl : summaryData.avatarUrl; - const avatarColorId = heroes ? heroes.roomAvatarColorId : this.id; + const avatarColorId = heroes?.roomAvatarColorId || this.id; return { roomId: this.id, isEncrypted: !!summaryData.encryption,