delete outdated default mute state config

This commit is contained in:
Valere
2026-01-08 13:16:58 +01:00
parent 0439fdefef
commit f5f8bb549a
2 changed files with 2 additions and 11 deletions

View File

@@ -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,
}; };

View File

@@ -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$,
); );