diff --git a/packages/web/src/components/voice/VoiceChannel.tsx b/packages/web/src/components/voice/VoiceChannel.tsx index 743a4534..21bab818 100644 --- a/packages/web/src/components/voice/VoiceChannel.tsx +++ b/packages/web/src/components/voice/VoiceChannel.tsx @@ -2,9 +2,9 @@ import React, { useCallback, useMemo } from 'react'; import { useVoiceStore } from '../../stores/voiceStore'; import { useSpaceStore } from '../../stores/spaceStore'; import { useAuthStore } from '../../stores/authStore'; -import { Avatar } from '../ui/Avatar'; import { useContextMenuStore, type ContextMenuItem } from '../../stores/contextMenuStore'; import { buildVoiceModMenuItems, VolumeSliderItem } from './voiceMenuItems'; +import { VoiceUserRow } from './VoiceUserRow'; const EMPTY_VOICE_USERS: string[] = []; @@ -166,7 +166,7 @@ export function VoiceChannel({ channelId, channelName, onClick, locked, canManag const participant = participants.find(p => p.userId === userId); const displayName = member?.user.displayName ?? member?.user.username ?? participant?.username ?? userId; const avatar = member?.user.avatar ?? null; - const status = member?.user.status; + const avatarColor = member?.user.avatarColor; const wsStatus = voiceUserStates.get(userId); const isParticipantDeafened = userId === currentUserId ? localIsDeafened @@ -188,7 +188,7 @@ export function VoiceChannel({ channelId, channelName, onClick, locked, canManag return (
handleContextMenu(e, userId)} > - - {displayName} - {/* Status badges */} -
- {(isSpaceMuted || isSpaceDeafened || isPermissionMuted) && ( - - - - - - - - )} - {isSpaceDeafened && ( - - - - - - - )} - {!isSpaceMuted && !isSpaceDeafened && !isPermissionMuted && isMuted && ( - - - - - - )} - {!isSpaceDeafened && isParticipantDeafened && ( - - - - - )} - {hasCamera && ( - - - {userId !== myUser?.id && unwatchedCameras.has(userId) && ( - - )} - - )} - {isScreenSharing && ( - LIVE - )} - {userId !== myUser?.id && participantMutes.get(userId) && ( - - - - - - - - )} -
); })}