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

This commit is contained in:
Saúl Ibarra Corretgé 2022-05-30 10:20:58 +02:00 committed by Saúl Ibarra Corretgé
parent 11d61d6d7d
commit 1dce802031
3 changed files with 5 additions and 7 deletions

View File

@ -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']
// },

View File

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

View File

@ -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;
}
/**