fix: pass user/avatarColor to Avatar in profile popout and modal

Profile panels were rendering avatars without the user's chosen
avatarColor because they passed userId but omitted the user prop.
This commit is contained in:
Jannis Braun
2026-03-11 01:47:01 +01:00
parent a5fcb78434
commit 36d84c5974
2 changed files with 3 additions and 0 deletions
@@ -261,6 +261,7 @@ export function UserProfileModal() {
size={96}
status={user.status as 'online' | 'idle' | 'dnd' | 'offline' | null}
userId={user.homeUserId ?? user.id}
user={user}
ring={{ width: 4, color: 'var(--color-surface-elevated, #1e1e2a)' }}
className="mt-[-52px] mb-2"
/>
@@ -373,6 +374,7 @@ export function UserProfileModal() {
size={40}
status={friend.status as 'online' | 'idle' | 'dnd' | 'offline' | null}
userId={friend.homeUserId ?? friend.id}
avatarColor={friend.avatarColor}
/>
<div className="min-w-0">
<div className="text-[13px] font-medium text-txt-primary truncate">