mirror of
https://github.com/vector-im/element-call.git
synced 2026-03-31 07:00:26 +00:00
tests
This commit is contained in:
@@ -37,7 +37,6 @@ import {
|
||||
switchMap,
|
||||
} from "rxjs";
|
||||
import { useEffect } from "react";
|
||||
import { MatrixRTCSession } from "matrix-js-sdk/src/matrixrtc";
|
||||
|
||||
import { ViewModel } from "./ViewModel";
|
||||
import { useReactiveState } from "../useReactiveState";
|
||||
@@ -206,7 +205,6 @@ abstract class BaseUserMediaViewModel extends BaseMediaViewModel {
|
||||
member: RoomMember | undefined,
|
||||
participant: Observable<LocalParticipant | RemoteParticipant | undefined>,
|
||||
encryptionSystem: EncryptionSystem,
|
||||
rtcSession: MatrixRTCSession,
|
||||
) {
|
||||
super(
|
||||
id,
|
||||
@@ -217,19 +215,6 @@ abstract class BaseUserMediaViewModel extends BaseMediaViewModel {
|
||||
Track.Source.Camera,
|
||||
);
|
||||
|
||||
// rtcSession.on(
|
||||
// MatrixRTCSessionEvent.EncryptionKeyChanged,
|
||||
// (key, index, participantId) => {
|
||||
// if (id.startsWith(participantId))
|
||||
// logger.info("got new keys: ", participant, { index, key });
|
||||
// logger.info("All keys for participant ", participant, " - ", [
|
||||
// ...this.keys.value,
|
||||
// { index, key },
|
||||
// ]);
|
||||
// this.keys.next([...this.keys.value, { index, key }]);
|
||||
// },
|
||||
// );
|
||||
|
||||
const media = participant.pipe(
|
||||
switchMap((p) => (p && observeParticipantMedia(p)) ?? of(undefined)),
|
||||
this.scope.state(),
|
||||
@@ -280,9 +265,8 @@ export class LocalUserMediaViewModel extends BaseUserMediaViewModel {
|
||||
member: RoomMember | undefined,
|
||||
participant: Observable<LocalParticipant | undefined>,
|
||||
encryptionSystem: EncryptionSystem,
|
||||
rtcSession: MatrixRTCSession,
|
||||
) {
|
||||
super(id, member, participant, encryptionSystem, rtcSession);
|
||||
super(id, member, participant, encryptionSystem);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -341,9 +325,8 @@ export class RemoteUserMediaViewModel extends BaseUserMediaViewModel {
|
||||
member: RoomMember | undefined,
|
||||
participant: Observable<RemoteParticipant | undefined>,
|
||||
encryptionSystem: EncryptionSystem,
|
||||
rtcSession: MatrixRTCSession,
|
||||
) {
|
||||
super(id, member, participant, encryptionSystem, rtcSession);
|
||||
super(id, member, participant, encryptionSystem);
|
||||
|
||||
// Sync the local volume with LiveKit
|
||||
combineLatest([
|
||||
|
||||
Reference in New Issue
Block a user