diff --git a/src/Facepile.tsx b/src/Facepile.tsx index c3f5b290..86c5c6f5 100644 --- a/src/Facepile.tsx +++ b/src/Facepile.tsx @@ -72,12 +72,12 @@ export function Facepile({ {...rest} > {participants.slice(0, max).map((member, i) => { - const avatarUrl = member.user?.avatarUrl; + const avatarUrl = member.getMxcAvatarUrl(); return ( { - const avatarUrl = roomMember.user?.avatarUrl; + const avatarUrl = roomMember.getMxcAvatarUrl(); const size = Math.round(Math.min(width, height) / 2); return (