diff options
| author | Adam Soltys <[email protected]> | 2026-09-28 22:53:37 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-28 22:53:37 -0700 |
| commit | 86d5609a188ce4dae248d1b56c4563bae299af31 (patch) | |
| tree | ba9dd36426a724a3bc3b56ac631d34b0700eca56 /src/features | |
| parent | 06df23884d69bb2f46a6deeb9b05722d5ba45b53 (diff) | |
| download | coinosv3-86d5609a188ce4dae248d1b56c4563bae299af31.tar.gz coinosv3-86d5609a188ce4dae248d1b56c4563bae299af31.zip | |
A thread that starts from a poll (or any non-kind-1 post) is cached too, so a reload paints its replies at once.
The thread store accepted only kind 1 and silently skipped saving a thread
rooted in a kind 1068 poll — every refresh then waited on the relays behind
a spinner. Also guard the profile Back listener for window-less tests.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Du1qT1wbkYwYK6zkGH79Rp
Diffstat (limited to 'src/features')
| -rw-r--r-- | src/features/messages.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/features/messages.js b/src/features/messages.js index dd31f46..2a3b400 100644 --- a/src/features/messages.js +++ b/src/features/messages.js @@ -3025,7 +3025,7 @@ export function messagesFeature(ctx) { // reader deep in that person's posts, which read as a thread. Back (a // popstate) puts them where they were on the page they left. const profReturn = []; // [{ pk, y }] per profile opened, newest last - window.addEventListener('popstate', () => { + if (typeof window !== 'undefined') window.addEventListener('popstate', () => { const top = profReturn[profReturn.length - 1]; if (!top || ui.profilePk === top.pk) return; profReturn.pop(); |
