From f58bd1e498c39ed1c9f625d71753bbcdd26c7300 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 4 Jul 2022 20:05:25 +0100 Subject: [PATCH] Add config option for e2e group call signalling --- src/client.ts | 19 +++++++++++++++++++ src/webrtc/call.ts | 36 +++++++++++++++++++++++------------- 2 files changed, 42 insertions(+), 13 deletions(-) diff --git a/src/client.ts b/src/client.ts index 32e05e97260..3deed4e9262 100644 --- a/src/client.ts +++ b/src/client.ts @@ -346,6 +346,12 @@ export interface ICreateClientOpts { */ fallbackICEServerAllowed?: boolean; + /** + * If true, to-device signalling for group calls will be encrypted + * with Olm. Default: true. + */ + useE2eForGroupCall?: boolean; + cryptoCallbacks?: ICryptoCallbacks; } @@ -954,6 +960,8 @@ export class MatrixClient extends TypedEventEmitter>(); + private useE2eForGroupCall = true; + constructor(opts: IMatrixClientCreateOpts) { super(); @@ -1044,6 +1052,8 @@ export class MatrixClient extends TypedEventEmitter