@@ -1300,8 +1300,6 @@ describe("shouldWaitForCallPickup$", () => {
|
|||||||
remoteParticipants$: remote$,
|
remoteParticipants$: remote$,
|
||||||
rtcMembers$: rtc$,
|
rtcMembers$: rtc$,
|
||||||
connectionState$: of(ConnectionState.Connected),
|
connectionState$: of(ConnectionState.Connected),
|
||||||
speaking: new Map(),
|
|
||||||
mediaDevices: mockMediaDevices({}),
|
|
||||||
},
|
},
|
||||||
(vm, rtcSession) => {
|
(vm, rtcSession) => {
|
||||||
// Notify at 5ms so we enter ringing, then success at 20ms
|
// Notify at 5ms so we enter ringing, then success at 20ms
|
||||||
@@ -1309,12 +1307,15 @@ describe("shouldWaitForCallPickup$", () => {
|
|||||||
r: () => {
|
r: () => {
|
||||||
rtcSession.emit(
|
rtcSession.emit(
|
||||||
MatrixRTCSessionEvent.DidSendCallNotification,
|
MatrixRTCSessionEvent.DidSendCallNotification,
|
||||||
{ event_id: "$notif2", lifetime: 100 } as unknown as {
|
{
|
||||||
|
event_id: "$notif2",
|
||||||
|
lifetime: 100,
|
||||||
|
} as unknown as IRTCNotificationContent & {
|
||||||
event_id: string;
|
event_id: string;
|
||||||
} & IRTCNotificationContent,
|
},
|
||||||
{ event_id: "$notif2" } as unknown as {
|
{ event_id: "$notif2" } as unknown as ICallNotifyContent & {
|
||||||
event_id: string;
|
event_id: string;
|
||||||
} & ICallNotifyContent,
|
},
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -55,8 +55,6 @@ import {
|
|||||||
import { logger } from "matrix-js-sdk/lib/logger";
|
import { logger } from "matrix-js-sdk/lib/logger";
|
||||||
import {
|
import {
|
||||||
type CallMembership,
|
type CallMembership,
|
||||||
type ICallNotifyContent,
|
|
||||||
type IRTCNotificationContent,
|
|
||||||
type MatrixRTCSession,
|
type MatrixRTCSession,
|
||||||
MatrixRTCSessionEvent,
|
MatrixRTCSessionEvent,
|
||||||
MatrixRTCSessionEventHandlerMap,
|
MatrixRTCSessionEventHandlerMap,
|
||||||
|
|||||||
Reference in New Issue
Block a user