delete outdated default mute state config
This commit is contained in:
@@ -163,10 +163,6 @@ export interface ResolvedConfigOptions extends ConfigOptions {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
ssla: string;
|
ssla: string;
|
||||||
media_devices: {
|
|
||||||
enable_audio: boolean;
|
|
||||||
enable_video: boolean;
|
|
||||||
};
|
|
||||||
app_prompt: boolean;
|
app_prompt: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -181,9 +177,5 @@ export const DEFAULT_CONFIG: ResolvedConfigOptions = {
|
|||||||
feature_use_device_session_member_events: true,
|
feature_use_device_session_member_events: true,
|
||||||
},
|
},
|
||||||
ssla: "https://static.element.io/legal/element-software-and-services-license-agreement-uk-1.pdf",
|
ssla: "https://static.element.io/legal/element-software-and-services-license-agreement-uk-1.pdf",
|
||||||
media_devices: {
|
|
||||||
enable_audio: true,
|
|
||||||
enable_video: true,
|
|
||||||
},
|
|
||||||
app_prompt: true,
|
app_prompt: true,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ import {
|
|||||||
|
|
||||||
import { type MediaDevices, type MediaDevice } from "../state/MediaDevices";
|
import { type MediaDevices, type MediaDevice } from "../state/MediaDevices";
|
||||||
import { ElementWidgetActions, widget } from "../widget";
|
import { ElementWidgetActions, widget } from "../widget";
|
||||||
import { Config } from "../config/Config";
|
|
||||||
import { getUrlParams } from "../UrlParams";
|
import { getUrlParams } from "../UrlParams";
|
||||||
import { type ObservableScope } from "./ObservableScope";
|
import { type ObservableScope } from "./ObservableScope";
|
||||||
import { type Behavior, constant } from "./Behavior";
|
import { type Behavior, constant } from "./Behavior";
|
||||||
@@ -192,14 +191,14 @@ export class MuteStates {
|
|||||||
this.scope,
|
this.scope,
|
||||||
this.mediaDevices.audioInput,
|
this.mediaDevices.audioInput,
|
||||||
this.joined$,
|
this.joined$,
|
||||||
Config.get().media_devices.enable_audio,
|
true,
|
||||||
constant(false),
|
constant(false),
|
||||||
);
|
);
|
||||||
public readonly video = new MuteState(
|
public readonly video = new MuteState(
|
||||||
this.scope,
|
this.scope,
|
||||||
this.mediaDevices.videoInput,
|
this.mediaDevices.videoInput,
|
||||||
this.joined$,
|
this.joined$,
|
||||||
Config.get().media_devices.enable_video,
|
true,
|
||||||
this.isEarpiece$,
|
this.isEarpiece$,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user