Skip to content

Commit

Permalink
nostr: check if Filter tags are empty in tag_match func
Browse files Browse the repository at this point in the history
  • Loading branch information
yukibtc committed Oct 17, 2023
1 parent 63961ee commit c38288d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/nostr/src/message/subscription.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c38288d

Please sign in to comment.