diff --git a/src/state/CallViewModel.test.ts b/src/state/CallViewModel.test.ts index 475ccd47..559a5226 100644 --- a/src/state/CallViewModel.test.ts +++ b/src/state/CallViewModel.test.ts @@ -1300,8 +1300,6 @@ describe("shouldWaitForCallPickup$", () => { remoteParticipants$: remote$, rtcMembers$: rtc$, connectionState$: of(ConnectionState.Connected), - speaking: new Map(), - mediaDevices: mockMediaDevices({}), }, (vm, rtcSession) => { // Notify at 5ms so we enter ringing, then success at 20ms @@ -1309,12 +1307,15 @@ describe("shouldWaitForCallPickup$", () => { r: () => { rtcSession.emit( MatrixRTCSessionEvent.DidSendCallNotification, - { event_id: "$notif2", lifetime: 100 } as unknown as { + { + event_id: "$notif2", + lifetime: 100, + } as unknown as IRTCNotificationContent & { event_id: string; - } & IRTCNotificationContent, - { event_id: "$notif2" } as unknown as { + }, + { event_id: "$notif2" } as unknown as ICallNotifyContent & { event_id: string; - } & ICallNotifyContent, + }, ); }, }); diff --git a/src/state/CallViewModel.ts b/src/state/CallViewModel.ts index d6fa80f5..1771a589 100644 --- a/src/state/CallViewModel.ts +++ b/src/state/CallViewModel.ts @@ -55,8 +55,6 @@ import { import { logger } from "matrix-js-sdk/lib/logger"; import { type CallMembership, - type ICallNotifyContent, - type IRTCNotificationContent, type MatrixRTCSession, MatrixRTCSessionEvent, MatrixRTCSessionEventHandlerMap,