mirror of
https://github.com/vector-im/element-call.git
synced 2026-07-30 19:39:22 +00:00
prettier
This commit is contained in:
@@ -73,13 +73,12 @@ export function createHomeserverConnected$(
|
||||
startWith([client.getSyncState()]),
|
||||
map(([state]) => state === SyncState.Syncing),
|
||||
distinctUntilChanged(),
|
||||
switchMap((isSyncing) =>
|
||||
{
|
||||
if (isSyncing || graceMs <= 0) {
|
||||
return of(isSyncing); // Sofortige Emission (Synchron)
|
||||
}
|
||||
return of(false).pipe(delay(graceMs)); // Verzögertes false
|
||||
} ),
|
||||
switchMap((isSyncing) => {
|
||||
if (isSyncing || graceMs <= 0) {
|
||||
return of(isSyncing);
|
||||
}
|
||||
return of(false).pipe(delay(graceMs));
|
||||
}),
|
||||
startWith(client.getSyncState() === SyncState.Syncing),
|
||||
distinctUntilChanged(),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user