Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(config): add flag to hide the participant display name (#10650)

Mihaela Dumitru5cc3fade8ffe
diff --git a/config.js b/config.js
index 5068401611..15a727ec9c 100644
--- a/config.js
+++ b/config.js
@@ -490,6 +490,9 @@ var config = {
// Default remote name to be displayed
// defaultRemoteDisplayName: 'Fellow Jitster',
+ // Hides the display name from the participant thumbnail
+ // hideDisplayName: false
+
// Default language for the user interface.
// defaultLanguage: 'en',
diff --git a/react/features/base/config/configWhitelist.js b/react/features/base/config/configWhitelist.js
index 05219f68cf..f90f79bfa0 100644
--- a/react/features/base/config/configWhitelist.js
+++ b/react/features/base/config/configWhitelist.js
@@ -162,6 +162,7 @@ export default [
'googleApiApplicationClientID',
'hiddenPremeetingButtons',
'hideConferenceSubject',
+ 'hideDisplayName',
'hideRecordingLabel',
'hideParticipantsStats',
'hideConferenceTimer',
diff --git a/react/features/filmstrip/components/web/Thumbnail.js b/react/features/filmstrip/components/web/Thumbnail.js
index 7424132944..241db06dfa 100644
--- a/react/features/filmstrip/components/web/Thumbnail.js
+++ b/react/features/filmstrip/components/web/Thumbnail.js
@@ -236,7 +236,7 @@ const defaultStyles = theme => {
marginRight: '4px'
},
- '&:not(.top-indicators) > *:last-child': {
+ '&:not(.top-indicators) > span:last-child': {
marginRight: '6px'
}
},
diff --git a/react/features/filmstrip/components/web/ThumbnailBottomIndicators.js b/react/features/filmstrip/components/web/ThumbnailBottomIndicators.js
index 4b4c97f142..ff9a822377 100644
--- a/react/features/filmstrip/components/web/ThumbnailBottomIndicators.js
+++ b/react/features/filmstrip/components/web/ThumbnailBottomIndicators.js
@@ -63,6 +63,7 @@ const ThumbnailBottomIndicators = ({
const styles = useStyles();
const _allowEditing = !useSelector(isNameReadOnly);
const _defaultLocalDisplayName = interfaceConfig.DEFAULT_LOCAL_DISPLAY_NAME;
+ const _showDisplayName = useSelector(state => !state['features/base/config'].hideDisplayName);
return (<div className = { className }>
<StatusIndicators
@@ -70,14 +71,18 @@ const ThumbnailBottomIndicators = ({
moderator = { true }
participantID = { participantId }
screenshare = { currentLayout === LAYOUTS.TILE_VIEW } />
- <span className = { styles.nameContainer }>
- <DisplayName
- allowEditing = { local ? _allowEditing : false }
- currentLayout = { currentLayout }
- displayNameSuffix = { local ? _defaultLocalDisplayName : '' }
- elementID = { local ? 'localDisplayName' : `participant_${participantId}_name` }
- participantID = { participantId } />
- </span>
+ {
+ _showDisplayName && (
+ <span className = { styles.nameContainer }>
+ <DisplayName
+ allowEditing = { local ? _allowEditing : false }
+ currentLayout = { currentLayout }
+ displayNameSuffix = { local ? _defaultLocalDisplayName : '' }
+ elementID = { local ? 'localDisplayName' : `participant_${participantId}_name` }
+ participantID = { participantId } />
+ </span>
+ )
+ }
</div>);
};