Make it actually join the session

This commit is contained in:
Robin
2025-08-27 15:33:41 +02:00
committed by Timo K
parent c6e8c94fd6
commit cb91f1ad4f

View File

@@ -531,7 +531,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(
@@ -1873,5 +1876,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?
}
}