Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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

Hristo Terezov2442a332e7b9
diff --git a/react/features/base/config/configType.ts b/react/features/base/config/configType.ts
index 637178a3b2..ef23808ec0 100644
--- a/react/features/base/config/configType.ts
+++ b/react/features/base/config/configType.ts
@@ -299,6 +299,7 @@ export interface IConfig {
disableReactions?: boolean;
disableReactionsModeration?: boolean;
disableRecordAudioNotification?: boolean;
+ disableRemoteControl?: boolean;
disableRemoteMute?: boolean;
disableRemoveRaisedHandOnFocus?: boolean;
disableResponsiveTiles?: boolean;
@@ -618,6 +619,13 @@ export interface IConfig {
mobileCodecPreferenceOrder?: Array<string>;
persist?: boolean;
};
+ visitors?: {
+ enableMediaOnPromote?: {
+ audio?: boolean;
+ video?: boolean;
+ };
+ queueService: string;
+ };
watchRTCConfigParams?: IWatchRTCConfiguration;
webhookProxyUrl?: string;
webrtcIceTcpDisable?: boolean;
diff --git a/react/features/base/config/reducer.ts b/react/features/base/config/reducer.ts
index c2006493ed..e1c971428b 100644
--- a/react/features/base/config/reducer.ts
+++ b/react/features/base/config/reducer.ts
@@ -63,7 +63,6 @@ export interface IConfigState extends IConfig {
analysis?: {
obfuscateRoomName?: boolean;
};
- disableRemoteControl?: boolean;
error?: Error;
oldConfig?: {
bosh?: string;
@@ -75,13 +74,6 @@ export interface IConfigState extends IConfig {
p2p?: object;
websocket?: string;
};
- visitors?: {
- enableMediaOnPromote?: {
- audio?: boolean;
- video?: boolean;
- };
- queueService: string;
- };
}
ReducerRegistry.register<IConfigState>('features/base/config', (state = _getInitialState(), action): IConfigState => {