From c9e937c41c97929375e8f535e6e3235fe9b85496 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sat, 17 Jul 2021 13:29:20 -0700 Subject: [PATCH] Add redundancy to prevent stored nulls from causing errors. --- 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 86f9dcaa..9bf818ae 100644 --- a/src/matrix/room/Invite.js +++ b/src/matrix/room/Invite.js @@ -58,7 +58,7 @@ export class Invite extends EventEmitter { /** @see BaseRoom.avatarColorId */ get avatarColorId() { - return this._inviteData.avatarColorId; + return this._inviteData.avatarColorId || this.id; } get timestamp() {