mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-11-20 03:25:52 +01:00
Merge pull request #410 from vector-im/invite-avatar-fix
Fix error on invites in room list panel.
This commit is contained in:
commit
934e7e6f71
@ -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() {
|
||||
@ -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 New Issue
Block a user