send_filters refactor

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-05-14 15:35:34 -07:00
parent 040ffdf9f5
commit 8da251dc88
11 changed files with 129 additions and 36 deletions

View File

@@ -14,6 +14,7 @@ struct NostrFilter: Codable {
var pubkeys: [String]?
var since: Int64?
var until: Int64?
var limit: UInt32?
var authors: [String]?
var hashtag: [String]? = nil
@@ -26,6 +27,7 @@ struct NostrFilter: Codable {
case since
case until
case authors
case limit
}
public static func copy(from: NostrFilter) -> NostrFilter {