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

This commit is contained in:
Mihaela Dumitru 2021-12-20 10:46:47 +02:00 committed by GitHub
parent f8340bfd41
commit 5cc3fade8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 9 deletions

View File

@ -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',

View File

@ -162,6 +162,7 @@ export default [
'googleApiApplicationClientID',
'hiddenPremeetingButtons',
'hideConferenceSubject',
'hideDisplayName',
'hideRecordingLabel',
'hideParticipantsStats',
'hideConferenceTimer',

View File

@ -236,7 +236,7 @@ const defaultStyles = theme => {
marginRight: '4px'
},
'&:not(.top-indicators) > *:last-child': {
'&:not(.top-indicators) > span:last-child': {
marginRight: '6px'
}
},

View File

@ -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>);
};