From f04bc0cee10c32d1756e677ae04b6a6a55a73437 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Tue, 15 Feb 2022 21:03:27 -0300 Subject: [PATCH] fix filter on statusCallback: id -> ids --- package.json | 2 +- relay.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f449e19..eae5954 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nostr-tools", - "version": "0.22.1", + "version": "0.22.2", "description": "Tools for making a Nostr client.", "repository": { "type": "git", diff --git a/relay.js b/relay.js index 9320ed9..aee8b88 100644 --- a/relay.js +++ b/relay.js @@ -160,7 +160,7 @@ export function relayConnect(url, onNotice = () => {}, onError = () => {}) { unsub() clearTimeout(willUnsub) }, - filter: {id: event.id} + filter: {ids: [event.id]} }, `monitor-${event.id.slice(0, 5)}` )