mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-02-06 09:29:01 +01:00
Avoid storing null for invite avatars.
This commit is contained in:
parent
44b25e4157
commit
ad453555b9
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user