don't crash on race with room members and initial composer render
not ideal, but for now this prevents a crash at startup when a user-pill is persisted in local storage
This commit is contained in:
parent
e0ec827a64
commit
8e66d382de
1 changed files with 3 additions and 0 deletions
|
@ -284,6 +284,9 @@ class UserPillPart extends PillPart {
|
|||
}
|
||||
|
||||
setAvatar(node) {
|
||||
if (!this._member) {
|
||||
return;
|
||||
}
|
||||
const name = this._member.name || this._member.userId;
|
||||
const defaultAvatarUrl = Avatar.defaultAvatarUrlForString(this._member.userId);
|
||||
let avatarUrl = Avatar.avatarUrlForMember(
|
||||
|
|
Loading…
Reference in a new issue