mirror of
https://github.com/vector-im/element-call.git
synced 2026-05-07 10:14:36 +00:00
move startWith to corresponding switchMap branch
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -77,9 +77,8 @@ export function createHomeserverConnected$(
|
||||
if (isSyncing || graceMs <= 0) {
|
||||
return of(isSyncing);
|
||||
}
|
||||
return of(false).pipe(delay(graceMs));
|
||||
return of(false).pipe(delay(graceMs), startWith(true));
|
||||
}),
|
||||
startWith(client.getSyncState() === SyncState.Syncing),
|
||||
distinctUntilChanged(),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user