mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-30 14:11:39 +01:00
Add redundancy to prevent stored nulls from causing errors.
This commit is contained in:
parent
ad453555b9
commit
c9e937c41c
@ -58,7 +58,7 @@ export class Invite extends EventEmitter {
|
|||||||
|
|
||||||
/** @see BaseRoom.avatarColorId */
|
/** @see BaseRoom.avatarColorId */
|
||||||
get avatarColorId() {
|
get avatarColorId() {
|
||||||
return this._inviteData.avatarColorId;
|
return this._inviteData.avatarColorId || this.id;
|
||||||
}
|
}
|
||||||
|
|
||||||
get timestamp() {
|
get timestamp() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user