aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/app.js b/src/app.js
index 5b6f24f..d29e7d5 100644
--- a/src/app.js
+++ b/src/app.js
@@ -696,7 +696,12 @@ async function activateAccount(acc, opts = {}) {
wallet.setReceiveAck(ack);
}
}
- ui.receiveSeenIndex = ack;
+ // For a fresh open, leave receiveSeenIndex null until the post-scan baseline
+ // below. Setting it now (to the pre-scan frontier) lets the socket's reconcile
+ // credit a deposit that predates this open and briefly flash the "payment
+ // received" screen before the baseline catches up. A same-session refresh
+ // uses the persisted ack right away.
+ if (!opts.fresh) ui.receiveSeenIndex = ack;
// Go Live immediately: the socket must not wait on Nostr (up to 6s) or any
// discovery scan. The cache/Nostr state is already on screen.