Fix crash on profile opening
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
1207f5abad
commit
cf6732fb29
1 changed files with 2 additions and 2 deletions
|
@ -249,8 +249,8 @@ function ProfileViewer() {
|
|||
}, [isOpen]);
|
||||
|
||||
function renderProfile() {
|
||||
const member = room.getMember(userId) || mx.getUser(userId);
|
||||
const avatarMxc = member.getMxcAvatarUrl() || member.avatarUrl;
|
||||
const member = room.getMember(userId) || mx.getUser(userId) || {};
|
||||
const avatarMxc = member.getMxcAvatarUrl?.() || member.avatarUrl;
|
||||
|
||||
return (
|
||||
<div className="profile-viewer">
|
||||
|
|
Loading…
Reference in a new issue