Merge pull request 'fix(sync): "Connecting…" only while catching up, not for 30 s after load (#274)' (#432) from fix/connecting-strip into lotus
CI / Build & Quality Checks (push) Canceled after 0s
CI / Trigger Desktop Build (push) Canceled after 0s
CI / Secret scan (gitleaks) (push) Canceled after 0s
CI / Docker image build & smoke test (push) Canceled after 0s
CI / Playwright smoke (e2e) (push) Canceled after 0s
CI / Build & Quality Checks (push) Canceled after 0s
CI / Trigger Desktop Build (push) Canceled after 0s
CI / Secret scan (gitleaks) (push) Canceled after 0s
CI / Docker image build & smoke test (push) Canceled after 0s
CI / Playwright smoke (e2e) (push) Canceled after 0s
This commit was merged in pull request #432.
This commit is contained in:
@@ -65,12 +65,12 @@ export function SyncStatus({ mx }: SyncStatusProps) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
// [Gitea #274] Only while catching up after a drop. Upstream also showed it
|
||||||
(stateData.current === SyncState.Prepared ||
|
// for PREPARED and for the first SYNCING after PREPARED/RECONNECTING, i.e.
|
||||||
stateData.current === SyncState.Syncing ||
|
// until the NEXT /sync returned: on a quiet account that long-polls ~30 s
|
||||||
stateData.current === SyncState.Catchup) &&
|
// while the app already works (a SYNCING means a sync just succeeded).
|
||||||
stateData.previous !== SyncState.Syncing
|
// A real failure still surfaces as Reconnecting / Connection lost.
|
||||||
) {
|
if (stateData.current === SyncState.Catchup) {
|
||||||
return (
|
return (
|
||||||
<Box direction="Column" shrink="No">
|
<Box direction="Column" shrink="No">
|
||||||
<Box
|
<Box
|
||||||
|
|||||||
Reference in New Issue
Block a user