diff --git a/src/app/organisms/profile-viewer/ProfileViewer.jsx b/src/app/organisms/profile-viewer/ProfileViewer.jsx index 590c6da9..95f18f9b 100644 --- a/src/app/organisms/profile-viewer/ProfileViewer.jsx +++ b/src/app/organisms/profile-viewer/ProfileViewer.jsx @@ -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 (