diff --git a/packages/client-core/src/components/ConferenceMode/ConferenceModeParticipant.tsx b/packages/client-core/src/components/ConferenceMode/ConferenceModeParticipant.tsx index fe162f2961..b025ea9394 100644 --- a/packages/client-core/src/components/ConferenceMode/ConferenceModeParticipant.tsx +++ b/packages/client-core/src/components/ConferenceMode/ConferenceModeParticipant.tsx @@ -2,6 +2,7 @@ import classNames from 'classnames' import React from 'react' import { getAvatarURLForUser } from '@xrengine/client-core/src/user/components/UserMenu/util' +import { PeerID } from '@xrengine/common/src/interfaces/PeerID' import { Mic, @@ -23,10 +24,11 @@ import { useUserMediaWindowHook } from '../UserMediaWindow' import styles from './index.module.scss' interface Props { - peerId?: string | 'cam_me' | 'screen_me' + peerID: PeerID + type: 'cam' | 'screen' } -const ConferenceModeParticipant = ({ peerId }: Props): JSX.Element => { +const ConferenceModeParticipant = ({ peerID, type }: Props): JSX.Element => { const { user, volume, @@ -35,7 +37,7 @@ const ConferenceModeParticipant = ({ peerId }: Props): JSX.Element => { selfUser, audioRef, videoRef, - isSelfUser, + isSelf, videoStream, audioStream, enableGlobalMute, @@ -51,16 +53,16 @@ const ConferenceModeParticipant = ({ peerId }: Props): JSX.Element => { toggleVideo, adjustVolume, toggleGlobalMute - } = useUserMediaWindowHook({ peerId }) + } = useUserMediaWindowHook({ peerID, type }) return (
{ > {(videoStream == null || videoStreamPaused || videoProducerPaused || videoProducerGlobalMute) && ( )} -
-