From 87a27a0849a1617e515c2be29511e33721916098 Mon Sep 17 00:00:00 2001 From: Robin Date: Wed, 27 Aug 2025 15:33:41 +0200 Subject: [PATCH] Make it actually join the session --- src/state/CallViewModel.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/state/CallViewModel.ts b/src/state/CallViewModel.ts index 2ec9b053..1e736345 100644 --- a/src/state/CallViewModel.ts +++ b/src/state/CallViewModel.ts @@ -508,7 +508,10 @@ export class CallViewModel extends ViewModel { private readonly memberships$ = fromEvent( this.matrixRTCSession, MatrixRTCSessionEvent.MembershipsChanged, - ).pipe(map(() => this.matrixRTCSession.memberships)); + ).pipe( + startWith(null), + map(() => this.matrixRTCSession.memberships), + ); private readonly foci$ = this.memberships$.pipe( map( @@ -1757,5 +1760,8 @@ export class CallViewModel extends ViewModel { } } }); + + // Join automatically + this.join(); // TODO-MULTI-SFU: Use this view model for the lobby as well, and only call this once 'join' is clicked? } }