浏览代码

ref(config): Move config types from reducer to IConfig type

The properties are - visitors and disableRemoteControl.
factor2
Hristo Terezov 9 个月前
父节点
当前提交
2442a332e7
共有 2 个文件被更改,包括 8 次插入8 次删除
  1. 8
    0
      react/features/base/config/configType.ts
  2. 0
    8
      react/features/base/config/reducer.ts

+ 8
- 0
react/features/base/config/configType.ts 查看文件

299
     disableReactions?: boolean;
299
     disableReactions?: boolean;
300
     disableReactionsModeration?: boolean;
300
     disableReactionsModeration?: boolean;
301
     disableRecordAudioNotification?: boolean;
301
     disableRecordAudioNotification?: boolean;
302
+    disableRemoteControl?: boolean;
302
     disableRemoteMute?: boolean;
303
     disableRemoteMute?: boolean;
303
     disableRemoveRaisedHandOnFocus?: boolean;
304
     disableRemoveRaisedHandOnFocus?: boolean;
304
     disableResponsiveTiles?: boolean;
305
     disableResponsiveTiles?: boolean;
618
         mobileCodecPreferenceOrder?: Array<string>;
619
         mobileCodecPreferenceOrder?: Array<string>;
619
         persist?: boolean;
620
         persist?: boolean;
620
     };
621
     };
622
+    visitors?: {
623
+        enableMediaOnPromote?: {
624
+            audio?: boolean;
625
+            video?: boolean;
626
+        };
627
+        queueService: string;
628
+    };
621
     watchRTCConfigParams?: IWatchRTCConfiguration;
629
     watchRTCConfigParams?: IWatchRTCConfiguration;
622
     webhookProxyUrl?: string;
630
     webhookProxyUrl?: string;
623
     webrtcIceTcpDisable?: boolean;
631
     webrtcIceTcpDisable?: boolean;

+ 0
- 8
react/features/base/config/reducer.ts 查看文件

63
     analysis?: {
63
     analysis?: {
64
         obfuscateRoomName?: boolean;
64
         obfuscateRoomName?: boolean;
65
     };
65
     };
66
-    disableRemoteControl?: boolean;
67
     error?: Error;
66
     error?: Error;
68
     oldConfig?: {
67
     oldConfig?: {
69
         bosh?: string;
68
         bosh?: string;
75
         p2p?: object;
74
         p2p?: object;
76
         websocket?: string;
75
         websocket?: string;
77
     };
76
     };
78
-    visitors?: {
79
-        enableMediaOnPromote?: {
80
-            audio?: boolean;
81
-            video?: boolean;
82
-        };
83
-        queueService: string;
84
-    };
85
 }
77
 }
86
 
78
 
87
 ReducerRegistry.register<IConfigState>('features/base/config', (state = _getInitialState(), action): IConfigState => {
79
 ReducerRegistry.register<IConfigState>('features/base/config', (state = _getInitialState(), action): IConfigState => {

正在加载...
取消
保存