From 67339a8a477e37fc15267fb9ff4592da226db17d Mon Sep 17 00:00:00 2001
From: Awiteb
Date: Mon, 4 Aug 2025 06:28:32 +0000
Subject: [PATCH] chore: verify subscriptions
Signed-off-by: Awiteb
---
src/nostr_utils/mod.rs | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/nostr_utils/mod.rs b/src/nostr_utils/mod.rs
index b107d20..8c063dc 100644
--- a/src/nostr_utils/mod.rs
+++ b/src/nostr_utils/mod.rs
@@ -35,7 +35,7 @@ use nostr::{
parser::NostrParser,
types::RelayUrl,
};
-use nostr_sdk::Client;
+use nostr_sdk::{Client, ClientOptions};
use traits::TokenUtils;
use crate::{
@@ -111,7 +111,8 @@ impl NostrClient {
/// Initializes a new [`NostrClient`] instance and connects to the specified
/// relays.
pub async fn init(options: &CliOptions, relays: &[RelayUrl]) -> Self {
- let mut client_builder = Client::builder();
+ let mut client_builder =
+ Client::builder().opts(ClientOptions::new().verify_subscriptions(true));
if let Ok(Some(signer)) = options.signer() {
client_builder = client_builder.signer(signer);