Skip to content

Commit d3c76f7

Browse files
authored
Subscribe to public events with all identities (#636)
1 parent 1a93b4c commit d3c76f7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

crates/bcr-ebill-transport/src/nostr.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,10 @@ impl NostrConsumer {
456456
if current_client.is_primary() {
457457
let mut contacts = contact_service.get_nostr_npubs().await.unwrap_or_default();
458458
info!("Found {} contacts to subscribe to", contacts.len());
459-
// we also subscribe to our own public key
460-
contacts.push(current_client.keys.get_nostr_keys().public_key());
459+
// we also subscribe to our own local public keys
460+
let mut local_npubs =
461+
local_node_ids.iter().map(|n| n.npub()).collect::<Vec<_>>();
462+
contacts.append(&mut local_npubs);
461463
info!("Subscribing to public Nostr events for client {client_id}");
462464
current_client
463465
.subscribe(

0 commit comments

Comments
 (0)