Fix focus connection state typo, simplify its initialization

This commit is contained in:
Robin
2025-10-08 18:10:26 -04:00
parent 00daf834b6
commit 5be3b91509
3 changed files with 17 additions and 38 deletions

View File

@@ -607,7 +607,7 @@ export class CallViewModel extends ViewModel {
switchMap((c) =>
c?.state === "ready"
? // TODO mapping to ConnectionState for compatibility, but we should use the full state?
c.value.focusedConnectionState$.pipe(
c.value.focusConnectionState$.pipe(
map((s) => {
if (s.state === "ConnectedToLkRoom") return s.connectionState;
return ConnectionState.Disconnected;