notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit 483e8e85d674ebb8a0ed29f4fb7abaec503857da
parent f0d56da4f556cb0950fbc185291679af49778391
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 12 Apr 2024 20:29:41 -0700

fix until filters

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
MCargo.lock | 4++--
MCargo.toml | 2+-
Msrc/filter.rs | 4++++
3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/Cargo.lock b/Cargo.lock @@ -2556,9 +2556,9 @@ dependencies = [ [[package]] name = "nostrdb" -version = "0.3.0" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59da521fefb12cd1f1f0f26d15a2ab9f38860696f6c0bb674b9830a5bbc75990" +checksum = "a4d574f011d7bca4fcb7167da332da7a73d5612b24a187df08f5a000de08d3f4" dependencies = [ "bindgen", "cc", diff --git a/Cargo.toml b/Cargo.toml @@ -32,7 +32,7 @@ env_logger = "0.10.0" puffin_egui = { version = "0.27.0", optional = true } puffin = { version = "0.19.0", optional = true } #nostrdb = { git = "https://github.com/damus-io/nostrdb-rs", rev = "2675e7244554e40c9ee10d82b42bc647fef4c17d" } -nostrdb = "0.3.0" +nostrdb = "0.3.2" hex = "0.4.3" base32 = "0.4.0" nostr-sdk = "0.29.0" diff --git a/src/filter.rs b/src/filter.rs @@ -33,6 +33,10 @@ pub fn convert_enostr_filter(filter: &enostr::Filter) -> nostrdb::Filter { nfilter.since(since); } + if let Some(until) = filter.until { + nfilter.until(until); + } + if let Some(limit) = filter.limit { nfilter.limit(limit.into()); }