From 4c6e1e5c21b8a2995b2d1cd67e04a65b43455ea7 Mon Sep 17 00:00:00 2001 From: Robin Townsend Date: Thu, 27 Oct 2022 08:19:41 -0400 Subject: [PATCH] Replace the keepAlive flag with request options --- spec/unit/webrtc/groupCall.spec.ts | 4 ++-- src/client.ts | 7 ++++--- src/webrtc/groupCall.ts | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/spec/unit/webrtc/groupCall.spec.ts b/spec/unit/webrtc/groupCall.spec.ts index 692fbdbfb..e9a9c8a93 100644 --- a/spec/unit/webrtc/groupCall.spec.ts +++ b/spec/unit/webrtc/groupCall.spec.ts @@ -212,7 +212,7 @@ describe('Group Call', function() { ], }), FAKE_USER_ID_1, - false, + { keepAlive: false }, ); } finally { groupCall.leave(); @@ -234,7 +234,7 @@ describe('Group Call', function() { EventType.GroupCallMemberPrefix, expect.objectContaining({ "m.calls": [] }), FAKE_USER_ID_1, - true, // Request should outlive the window + { keepAlive: true }, // Request should outlive the window ); }); diff --git a/src/client.ts b/src/client.ts index 4b814b2f4..60c4d55f4 100644 --- a/src/client.ts +++ b/src/client.ts @@ -65,6 +65,7 @@ import { FileType, UploadResponse, HTTPError, + IRequestOpts, } from "./http-api"; import { Crypto, @@ -7517,7 +7518,7 @@ export class MatrixClient extends TypedEventEmitter { const pathParams = { $roomId: roomId, @@ -7537,7 +7538,7 @@ export class MatrixClient extends TypedEventEmitter