move starWith to corresponding branch in switchMap
This commit is contained in:
1 parent
39ef815d8b
commit
24c2845958
1 file changed
+1
-2
@@ -77,9 +77,8 @@ export function createHomeserverConnected$(
|
|||||||
if (isSyncing || graceMs <= 0) {
|
if (isSyncing || graceMs <= 0) {
|
||||||
return of(isSyncing);
|
return of(isSyncing);
|
||||||
}
|
}
|
||||||
return of(false).pipe(delay(graceMs));
|
return of(false).pipe(delay(graceMs), startWith(true));
|
||||||
}),
|
}),
|
||||||
startWith(client.getSyncState() === SyncState.Syncing),
|
|
||||||
distinctUntilChanged(),
|
distinctUntilChanged(),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user