mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Fix nostr cache persistence snapshot
This commit is contained in:
1 parent
bd377ed424
commit
b802867f93
1 file changed
-9
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user