Browse Source

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

The properties are - visitors and disableRemoteControl.
factor2
Hristo Terezov 9 months ago
parent
commit
2442a332e7
2 changed files with 8 additions and 8 deletions
  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 View File

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

+ 0
- 8
react/features/base/config/reducer.ts View File

@@ -63,7 +63,6 @@ export interface IConfigState extends IConfig {
63 63
     analysis?: {
64 64
         obfuscateRoomName?: boolean;
65 65
     };
66
-    disableRemoteControl?: boolean;
67 66
     error?: Error;
68 67
     oldConfig?: {
69 68
         bosh?: string;
@@ -75,13 +74,6 @@ export interface IConfigState extends IConfig {
75 74
         p2p?: object;
76 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 79
 ReducerRegistry.register<IConfigState>('features/base/config', (state = _getInitialState(), action): IConfigState => {

Loading…
Cancel
Save