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) {
|
_createData(inviteState, myInvite, inviter, summaryData, heroes) {
|
||||||
const name = heroes ? heroes.roomName : summaryData.name;
|
const name = heroes ? heroes.roomName : summaryData.name;
|
||||||
const avatarUrl = heroes ? heroes.roomAvatarUrl : summaryData.avatarUrl;
|
const avatarUrl = heroes ? heroes.roomAvatarUrl : summaryData.avatarUrl;
|
||||||
const avatarColorId = heroes ? heroes.roomAvatarColorId : this.id;
|
const avatarColorId = heroes?.roomAvatarColorId || this.id;
|
||||||
return {
|
return {
|
||||||
roomId: this.id,
|
roomId: this.id,
|
||||||
isEncrypted: !!summaryData.encryption,
|
isEncrypted: !!summaryData.encryption,
|
||||||
|
|
Reference in a new issue