From d9b6302bf769b51c34d92d5f44759226dd2df085 Mon Sep 17 00:00:00 2001 From: Robin Date: Wed, 27 Aug 2025 14:36:13 +0200 Subject: [PATCH] Fix crash? --- src/state/CallViewModel.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/state/CallViewModel.ts b/src/state/CallViewModel.ts index 11ca2428..468bbd3f 100644 --- a/src/state/CallViewModel.ts +++ b/src/state/CallViewModel.ts @@ -504,7 +504,7 @@ class Connection { export class CallViewModel extends ViewModel { private readonly e2eeOptions = getE2eeOptions( - this.encryptionSystem, + this.options.encryptionSystem, this.matrixRTCSession, ); @@ -1808,7 +1808,6 @@ export class CallViewModel extends ViewModel { private readonly reactionsSubject$: Observable< Record >, - private readonly encryptionSystem: EncryptionSystem, ) { super(); @@ -1825,7 +1824,7 @@ export class CallViewModel extends ViewModel { void enterRTCSession( this.matrixRTCSession, localFocus, - this.encryptionSystem.kind !== E2eeType.PER_PARTICIPANT, + this.options.encryptionSystem.kind !== E2eeType.PER_PARTICIPANT, ); });