From b802867f93891feaa45fb942fc6ea35f7d7ce0ad Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Sun, 1 Feb 2026 12:06:22 -0500 Subject: [PATCH] Fix nostr cache persistence snapshot --- js/nostr/client.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/js/nostr/client.js b/js/nostr/client.js index bf1b7297..e1db73b2 100644 --- a/js/nostr/client.js +++ b/js/nostr/client.js @@ -7560,9 +7560,6 @@ export class NostrClient { let summary = null; let target = "localStorage"; - const dirtyEventsSnapshot = new Set(this.dirtyEventIds); - const dirtyTombstonesSnapshot = new Set(this.dirtyTombstones); - try { summary = await this.eventsCacheStore.persistSnapshot( payload, @@ -7571,12 +7568,6 @@ export class NostrClient { ); if (summary?.persisted) { target = "IndexedDB"; - for (const id of dirtyEventsSnapshot) { - this.dirtyEventIds.delete(id); - } - for (const key of dirtyTombstonesSnapshot) { - this.dirtyTombstones.delete(key); - } } } catch (error) { devLogger.warn(