Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat: Adds visitors count in participants pane.
damencho50c4748d4034
diff --git a/lang/main.json b/lang/main.jsonindex 8a8d8abefc..0b8ec562c2 100644--- a/lang/main.json+++ b/lang/main.json@@ -759,6 +759,7 @@"headings": {"lobby": "Lobby ({{count}})","participantsList": "Meeting participants ({{count}})",+ "visitors": "Visitors ({{count}})","waitingLobby": "Waiting in lobby ({{count}})"},"search": "Search participants",diff --git a/react/features/participants-pane/components/web/MeetingParticipants.tsx b/react/features/participants-pane/components/web/MeetingParticipants.tsxindex 79adb581c7..e5e3574650 100644--- a/react/features/participants-pane/components/web/MeetingParticipants.tsx+++ b/react/features/participants-pane/components/web/MeetingParticipants.tsx@@ -30,6 +30,9 @@ import MeetingParticipantItems from './MeetingParticipantItems';const useStyles = makeStyles()(theme => {return {+ headingW: {+ color: theme.palette.warning02+ },heading: {color: theme.palette.text02,@@ -103,11 +106,16 @@ function MeetingParticipants({const askUnmuteText = t('participantsPane.actions.askUnmute');const muteParticipantButtonText = t('dialog.muteParticipantButton');const isBreakoutRoom = useSelector(isInBreakoutRoom);+ const visitorsCount = useSelector((state: IReduxState) => state['features/visitors'].count);- const { classes: styles } = useStyles();+ const { classes: styles, cx } = useStyles();return (<>+ <div className = { cx(styles.heading, styles.headingW) }>+ {visitorsCount && visitorsCount > 0+ && t('participantsPane.headings.visitors', { count: visitorsCount })}+ </div><div className = { styles.heading }>{currentRoom?.name? `${currentRoom.name} (${participantsCount})`