Fix quote, retry errored sockets

This commit is contained in:
Jon Staab
2024-11-18 17:11:24 -08:00
parent 02617d9c24
commit 2de2d24e0b
2 changed files with 13 additions and 1 deletions
+4 -1
View File
@@ -180,7 +180,10 @@ export class Router {
Quote = (event: TrustedEvent, value: string, relays = []) => {
const tag = event.tags.find(t => t[1] === value)
const scenarios: RouterScenario[] = []
const scenarios = [
this.ForPubkey(event.pubkey),
this.FromPubkey(event.pubkey),
]
if (tag?.[2] && isShareableRelayUrl(tag[2])) {
scenarios.push(this.FromRelays([tag[2]]))