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