ndk icon indicating copy to clipboard operation
ndk copied to clipboard

fix dexie cache filter

Open DanConwayDev opened this issue 8 months ago • 4 comments

by correcting the event format passed to nostr-tool's matchFilter

the dexie cache adaptor applies some simple filtering for efficiency reasons before using nostr-tool's matchFilter to apply the full NIP-01 ruleset

basic root cause analysis:

it is likely that nostr-tools changed the event format expected by matchFilter and this was missed during a dependancy upgrade for a number of reasons:

  1. the use of as any remove type checking
  2. nostr-tools doesn't use semantic versioning to highlight breaking changes
  3. a cursory test using simple filters would have returned correct results

DanConwayDev avatar Jun 10 '24 07:06 DanConwayDev