fix(prejoin,config) move hidePrejoinDisplayName to the prejoin section

pull/11598/head jitsi-meet_7365
Saúl Ibarra Corretgé 3 years ago committed by Saúl Ibarra Corretgé
parent 11d61d6d7d
commit 1dce802031
  1. 9
      config.js
  2. 1
      react/features/base/config/configWhitelist.js
  3. 2
      react/features/prejoin/functions.js

@ -495,11 +495,6 @@ var config = {
// Hides add breakout room button
// hideAddRoomButton: false,
// Hides the participant name editing field in the prejoin screen.
// If requireDisplayName is also set as true, a name should still be provided through
// either the jwt or the userInfo from the iframe api init object in order for this to have an effect.
// hidePrejoinDisplayName: false,
// Require users to always specify a display name.
// requireDisplayName: true,
@ -564,6 +559,10 @@ var config = {
// // When 'true', it shows an intermediate page before joining, where the user can configure their devices.
// // This replaces `prejoinPageEnabled`.
// enabled: true,
// // Hides the participant name editing field in the prejoin screen.
// // If requireDisplayName is also set as true, a name should still be provided through
// // either the jwt or the userInfo from the iframe api init object in order for this to have an effect.
// hideDisplayName: false,
// // List of buttons to hide from the extra join options dropdown.
// hideExtraJoinButtons: ['no-audio', 'by-phone']
// },

@ -169,7 +169,6 @@ export default [
'hideConferenceSubject',
'hideDisplayName',
'hideDominantSpeakerBadge',
'hidePrejoinDisplayName',
'hideRecordingLabel',
'hideParticipantsStats',
'hideConferenceTimer',

@ -43,7 +43,7 @@ export function isDisplayNameRequired(state: Object): boolean {
* @returns {boolean}
*/
export function isPrejoinDisplayNameVisible(state: Object): boolean {
return !state['features/base/config'].hidePrejoinDisplayName;
return !state['features/base/config'].prejoinConfig?.hideDisplayName;
}
/**

Loading…
Cancel
Save