Fix crash when you have invalid relays in your relay list

Changelog-Fixed: Fix crash when you have invalid relays in your relay list
This commit is contained in:
William Casarin
2023-04-25 15:06:09 -07:00
parent 633fcd69a8
commit d074d092a2
13 changed files with 51 additions and 45 deletions

View File

@@ -242,7 +242,7 @@ func follow_with_existing_contacts(our_pubkey: String, our_contacts: NostrEvent,
func make_contact_relays(_ relays: [RelayDescriptor]) -> [String: RelayInfo] {
return relays.reduce(into: [:]) { acc, relay in
acc[relay.url.absoluteString] = relay.info
acc[relay.url.url.absoluteString] = relay.info
}
}