connect to relays stored in contacts

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-06-08 13:09:46 -07:00
parent bbb0ee205f
commit 23bb7c7f18
5 changed files with 34 additions and 6 deletions

View File

@@ -133,6 +133,11 @@ func follow_user_event(our_contacts: NostrEvent?, our_pubkey: String, follow: Re
return ev
}
func decode_json_relays(_ content: String) -> [String: RelayInfo]? {
return decode_json(content)
}
/*
func ensure_relay_info(relays: [RelayDescriptor], content: String) -> [String: RelayInfo] {
guard let relay_info = decode_json_relays(content) else {