diff --git a/src/matrix.ts b/src/matrix.ts index ccdfea69e..1239ccdfd 100644 --- a/src/matrix.ts +++ b/src/matrix.ts @@ -48,12 +48,14 @@ export * from "./crypto/store/indexeddb-crypto-store"; export * from "./content-repo"; export * as ContentHelpers from "./content-helpers"; export { createNewMatrixCall } from "./webrtc/call"; +export type { MatrixCall } from "./webrtc/call"; export { GroupCallEvent, GroupCallIntent, GroupCallState, GroupCallType, } from "./webrtc/groupCall"; +export type { GroupCall } from "./webrtc/groupCall"; // expose the underlying request object so different environments can use // different request libs (e.g. request or browser-request) diff --git a/src/webrtc/call.ts b/src/webrtc/call.ts index 12222d4ba..f42ab48b3 100644 --- a/src/webrtc/call.ts +++ b/src/webrtc/call.ts @@ -265,6 +265,7 @@ export class MatrixCall extends EventEmitter { public hangupReason: string; public direction: CallDirection; public ourPartyId: string; + public peerConn?: RTCPeerConnection; private client: MatrixClient; private forceTURN: boolean; @@ -275,7 +276,6 @@ export class MatrixCall extends EventEmitter { private candidateSendQueue: Array = []; private candidateSendTries = 0; private sentEndOfCandidates = false; - private peerConn: RTCPeerConnection; private feeds: Array = []; private usermediaSenders: Array = []; private screensharingSenders: Array = [];