fix tag in matchFilter for kinds and ids.

This commit is contained in:
fiatjaf
2022-01-01 21:18:37 -03:00
parent 1b5c314436
commit bb09e25512
2 changed files with 3 additions and 3 deletions

View File

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

View File

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