rtc: use new API in tests (instead of deprecated calls) (#31649)

This commit is contained in:
Valere Fedronic
2026-01-06 14:13:48 +00:00
committed by GitHub
parent fea10b3c19
commit df091a7d3e
2 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -1051,7 +1051,7 @@ describe("ElementCall", () => {
setRoomMembers(["@user:example.com", "@user2:example.com", "@user4:example.com"]);
});
it("don't sent notify event if there are existing room call members", async () => {
jest.spyOn(MatrixRTCSession, "callMembershipsForRoom").mockReturnValue([
jest.spyOn(MatrixRTCSession, "sessionMembershipsForSlot").mockResolvedValue([
{ application: "m.call", callId: "" } as unknown as CallMembership,
]);
const sendEventSpy = jest.spyOn(room.client, "sendEvent");