Fix nostr cache persistence snapshot

This commit is contained in:
thePR0M3TH3AN committed 2026-02-01 12:06:22 -05:00
1 parent bd377ed424
commit b802867f93
1 file changed
-9
-9
View File
@@ -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(