forked from mystiq/hydrogen-web
Avoid storing null for invite avatars.
This commit is contained in:
parent
44b25e4157
commit
ad453555b9
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue