Add redundancy to prevent stored nulls from causing errors.

This commit is contained in:
Danila Fedorin 2021-07-17 13:29:20 -07:00
parent ad453555b9
commit c9e937c41c

View file

@ -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() {