mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 12:16:53 +02:00
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
@ -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…
x
Reference in New Issue
Block a user