瀏覽代碼

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

master
Saúl Ibarra Corretgé 3 年之前
父節點
當前提交
1dce802031
共有 3 個文件被更改,包括 5 次插入7 次删除
  1. 4
    5
      config.js
  2. 0
    1
      react/features/base/config/configWhitelist.js
  3. 1
    1
      react/features/prejoin/functions.js

+ 4
- 5
config.js 查看文件

495
     // Hides add breakout room button
495
     // Hides add breakout room button
496
     // hideAddRoomButton: false,
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
     // Require users to always specify a display name.
498
     // Require users to always specify a display name.
504
     // requireDisplayName: true,
499
     // requireDisplayName: true,
505
 
500
 
564
     //     // When 'true', it shows an intermediate page before joining, where the user can configure their devices.
559
     //     // When 'true', it shows an intermediate page before joining, where the user can configure their devices.
565
     //     // This replaces `prejoinPageEnabled`.
560
     //     // This replaces `prejoinPageEnabled`.
566
     //     enabled: true,
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
     //     // List of buttons to hide from the extra join options dropdown.
566
     //     // List of buttons to hide from the extra join options dropdown.
568
     //     hideExtraJoinButtons: ['no-audio', 'by-phone']
567
     //     hideExtraJoinButtons: ['no-audio', 'by-phone']
569
     // },
568
     // },

+ 0
- 1
react/features/base/config/configWhitelist.js 查看文件

169
     'hideConferenceSubject',
169
     'hideConferenceSubject',
170
     'hideDisplayName',
170
     'hideDisplayName',
171
     'hideDominantSpeakerBadge',
171
     'hideDominantSpeakerBadge',
172
-    'hidePrejoinDisplayName',
173
     'hideRecordingLabel',
172
     'hideRecordingLabel',
174
     'hideParticipantsStats',
173
     'hideParticipantsStats',
175
     'hideConferenceTimer',
174
     'hideConferenceTimer',

+ 1
- 1
react/features/prejoin/functions.js 查看文件

43
  * @returns {boolean}
43
  * @returns {boolean}
44
  */
44
  */
45
 export function isPrejoinDisplayNameVisible(state: Object): boolean {
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…
取消
儲存