start moving over/removing things from the CallViewModel

This commit is contained in:
Timo K
2025-10-30 01:13:06 +01:00
parent 6b513534f1
commit c8ef8d6a24
7 changed files with 231 additions and 469 deletions

View File

@@ -42,11 +42,11 @@ export type ParticipantByMemberIdMap = Map<
export class ConnectionManager {
private livekitRoomFactory: () => LivekitRoom;
public constructor(
private client: MatrixClient,
private scope: ObservableScope,
private client: MatrixClient,
private devices: MediaDevices,
private processorState: ProcessorState,
private e2eeLivekitOptions$: Behavior<E2EEOptions | undefined>,
private processorState$: Behavior<ProcessorState>,
private e2eeLivekitOptions: E2EEOptions | undefined,
private logger?: Logger,
livekitRoomFactory?: () => LivekitRoom,
) {
@@ -55,8 +55,8 @@ export class ConnectionManager {
new LivekitRoom(
generateRoomOption(
this.devices,
this.processorState,
this.e2eeLivekitOptions$.value,
this.processorState$.value,
this.e2eeLivekitOptions,
),
);
this.livekitRoomFactory = livekitRoomFactory ?? defaultFactory;