feat(native-participants-pane) removed console.log

This commit is contained in:
Calin Chitu 2021-06-15 14:42:03 +03:00 committed by Hristo Terezov
parent 80b49266ab
commit 249515ac60
1 changed files with 2 additions and 2 deletions

View File

@ -25,14 +25,14 @@ export const MeetingParticipantItem = ({ participant: p }: Props) => {
const dispatch = useDispatch();
const isAudioMuted = useSelector(getIsParticipantAudioMuted(p));
const isVideoMuted = useSelector(getIsParticipantVideoMuted(p));
const openContextMenuDetails = useCallback(() => dispatch(showContextMenuDetails(p), [ dispatch ]));
const openContextMenuDetails = useCallback(() => !p.local && dispatch(showContextMenuDetails(p), [ dispatch ]));
return (
<ParticipantItem
audioMuteState = { isAudioMuted ? MediaState.Muted : MediaState.Unmuted }
isKnockingParticipant = { false }
name = { p.name }
onPress = { !p.local && openContextMenuDetails }
onPress = { openContextMenuDetails }
participant = { p }
videoMuteState = { isVideoMuted ? MediaState.Muted : MediaState.Unmuted } />
);