Poll every 8 s while visible, pause in background tabs
Conversations and the owner screen refreshed every 20 s and 30 s. A shared keepFresh helper now checks every 8 s while the tab is visible, pauses when it is hidden, catches up at once when it returns, never overlaps runs, and stops when the screen is gone or the owner token is. The latter also stops the sign-in form being redrawn under someone typing. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
+5
-3
@@ -305,9 +305,11 @@ text rules below are enforced by endpoints.
|
||||
gateway; nothing else about the conversation is exposed.
|
||||
- **Buyer UI:** a contact form on every verified listing; a private link
|
||||
`#/c/<author>/<id>/<thread secret>` (the secret stays in the URL fragment,
|
||||
which is never sent to a server) that polls every 20 s, shows only verified
|
||||
owner replies and counts the rest as rejected; `#/messages` lists the
|
||||
conversations stored in this browser.
|
||||
which is never sent to a server) that polls every 8 s while the tab is
|
||||
visible (paused in a background tab, resumed at once when it returns; there is
|
||||
no push channel), shows only verified owner replies and counts the rest as
|
||||
rejected; `#/messages` lists the conversations stored in this browser. The
|
||||
owner's "My listings" screen refreshes the same way.
|
||||
- **Owner UI** (`#/mine`): your listings (requests needing a reply, whether an
|
||||
address is saved), the requests of one listing (status, preview, effort,
|
||||
filters), a conversation, and a sheet to **release the address** (prefilled
|
||||
|
||||
Reference in New Issue
Block a user