From c38288d274518c169808f4a95b0db5221c385cd9 Mon Sep 17 00:00:00 2001 From: Yuki Kishimoto Date: Tue, 17 Oct 2023 15:07:26 +0200 Subject: [PATCH] nostr: check if `Filter` tags are empty in `tag_match` func --- crates/nostr/src/message/subscription.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nostr/src/message/subscription.rs b/crates/nostr/src/message/subscription.rs index b56af322a..a88d32a38 100644 --- a/crates/nostr/src/message/subscription.rs +++ b/crates/nostr/src/message/subscription.rs @@ -652,7 +652,7 @@ impl Filter { } fn tag_match(&self, event: &Event) -> bool { - if event.tags.is_empty() { + if self.generic_tags.is_empty() || event.tags.is_empty() { return true; }