refactor: remove subscribe

This commit is contained in:
thesimplekid
2024-05-19 17:50:30 +01:00
parent f099f8564c
commit 226a10ca1f

View File

@@ -1193,9 +1193,6 @@ impl Wallet {
};
self.nostr_client.connect().await;
self.nostr_client
.subscribe(vec![filter.clone()], None)
.await;
let events = self.nostr_client.get_events_of(vec![filter], None).await?;
@@ -1207,8 +1204,6 @@ impl Wallet {
if let Ok(msg) =
nip04::decrypt(keys.secret_key()?, event.author_ref(), event.content())
{
println!("DM: {msg}");
if let Some(token) = Self::token_from_text(&msg) {
tokens.insert(token.to_string());
}