feat: NostrQueryManager

This commit is contained in:
2024-01-08 13:55:59 +00:00
parent cae865a3e7
commit 88924941a5
5 changed files with 201 additions and 118 deletions

View File

@ -198,6 +198,7 @@ export class Query extends EventEmitter<QueryEvents> implements QueryBase {
if (t.id === sub || sub === "*") {
if (t.filters.some(v => eventMatchesFilter(e, v))) {
this.feed.add(e);
return t;
} else {
this.#log("Event did not match filter, rejecting %O %O", e, t);
}