diff --git a/bindings/nostr-sdk-js/src/client/mod.rs b/bindings/nostr-sdk-js/src/client/mod.rs index 1590c273a..c63ce25e0 100644 --- a/bindings/nostr-sdk-js/src/client/mod.rs +++ b/bindings/nostr-sdk-js/src/client/mod.rs @@ -512,6 +512,16 @@ impl JsClient { .map(|id| id.into()) } + /// Negentropy reconciliation + /// + /// + pub fn reconcile(&self, filter: Arc) -> Result<()> { + Ok(self.inner.reconcile( + filter.as_ref().deref().clone(), + NegentropyOptions::default(), + )?) + } + /// Handle notifications /// /// **This method spawn a thread**, so ensure to keep up the app after calling this (if needed). diff --git a/crates/nostr-sdk/src/client/mod.rs b/crates/nostr-sdk/src/client/mod.rs index 30e007a25..68947bb54 100644 --- a/crates/nostr-sdk/src/client/mod.rs +++ b/crates/nostr-sdk/src/client/mod.rs @@ -1279,6 +1279,8 @@ impl Client { } /// Negentropy reconciliation + /// + /// pub async fn reconcile(&self, filter: Filter, opts: NegentropyOptions) -> Result<(), Error> { Ok(self.pool.reconcile(filter, opts).await?) }