Selaa lähdekoodia

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

master
Saúl Ibarra Corretgé 3 vuotta sitten
vanhempi
commit
1dce802031

+ 4
- 5
config.js Näytä tiedosto

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

+ 0
- 1
react/features/base/config/configWhitelist.js Näytä tiedosto

@@ -169,7 +169,6 @@ export default [
169 169
     'hideConferenceSubject',
170 170
     'hideDisplayName',
171 171
     'hideDominantSpeakerBadge',
172
-    'hidePrejoinDisplayName',
173 172
     'hideRecordingLabel',
174 173
     'hideParticipantsStats',
175 174
     'hideConferenceTimer',

+ 1
- 1
react/features/prejoin/functions.js Näytä tiedosto

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

Loading…
Peruuta
Tallenna