From 135dd91a384469967a277eae3b685717fa6d2340 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 14 Sep 2026 17:47:19 -0700 Subject: A new identity starts with an empty Notifications list. Logging out and opening another account kept showing the last account's replies and zaps: the list lived in memory across the switch, alongside the feed and tallies that were already being cleared. It is cleared with them now, together with the who-zapped map and any open panels. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01QYJfZ4A1TDCEY4Foq3CApR --- src/features/messages.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/features/messages.js') diff --git a/src/features/messages.js b/src/features/messages.js index 71daef8..b549b62 100644 --- a/src/features/messages.js +++ b/src/features/messages.js @@ -5635,6 +5635,10 @@ export function messagesFeature(ctx) { follows = null; followsAt = 0; feed = null; feedAt = 0; relayLists = null; mutes = null; mutesAt = 0; reacts.clear(); boosts.clear(); seenNoteEv.clear(); myReactEv.clear(); quoted.clear(); + // what happened to THEIR posts stays with them — the next identity + // starts its list empty and asks the relays under its own key + stopNotifWatch(); notif = null; notifAt = 0; notifNotes.clear(); + zapWho.clear(); whoOpenIds.clear(); clearTimeout(zapSaveT); zapSaveT = null; zapSeed = null; zapTotals.clear(); zapAsked.clear(); zapPending.clear(); // 'mine' is per identity — refetch under the next }, -- cgit v1.2.3