add optional idb "relay" worker

This commit is contained in:
Martti Malmi
2024-01-03 16:52:19 +02:00
parent 8571ea0aa7
commit 395848fd8c
12 changed files with 272 additions and 70 deletions

View File

@ -26,7 +26,7 @@ export class FollowListCache extends RefreshFeedCache<TaggedNostrEvent> {
loaded: unixNowMs(),
});
if (update !== "no_change") {
socialGraphInstance.handleFollowEvent(e);
socialGraphInstance.handleEvent(e);
}
}),
);
@ -42,6 +42,6 @@ export class FollowListCache extends RefreshFeedCache<TaggedNostrEvent> {
override async preload() {
await super.preload();
this.snapshot().forEach(e => socialGraphInstance.handleFollowEvent(e));
this.snapshot().forEach(e => socialGraphInstance.handleEvent(e));
}
}