mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-08 16:28:49 +00:00
only initiate subscriptions for new relays added with read:true
This commit is contained in:
8
pool.js
8
pool.js
@@ -84,9 +84,11 @@ export function relayPool() {
|
|||||||
})
|
})
|
||||||
relays[relayURL] = {relay, policy}
|
relays[relayURL] = {relay, policy}
|
||||||
|
|
||||||
Object.values(activeSubscriptions).forEach(subscription =>
|
if (policy.read) {
|
||||||
subscription.addRelay(relay)
|
Object.values(activeSubscriptions).forEach(subscription =>
|
||||||
)
|
subscription.addRelay(relay)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
return relay
|
return relay
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user