Compare commits

...

1 Commits

Author SHA1 Message Date
fiatjaf
bb09e25512 fix tag in matchFilter for kinds and ids. 2022-01-01 21:18:37 -03:00
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
export function matchFilter(filter, event) {
if (filter.ids && filter.ids.indexOf(event.id) !== -1) return false
if (filter.kinds && filter.kinds.indexOf(event.kind) !== -1) return false
if (filter.ids && filter.ids.indexOf(event.id) === -1) return false
if (filter.kinds && filter.kinds.indexOf(event.kind) === -1) return false
if (filter.authors && filter.authors.indexOf(event.pubkey) === -1)
return false

View File

@@ -1,6 +1,6 @@
{
"name": "nostr-tools",
"version": "0.16.0",
"version": "0.16.1",
"description": "Tools for making a Nostr client.",
"repository": {
"type": "git",