Add screen to select individual relays when posting/broadcasting

Changelog-Added: Add screen to select individual relays when posting/broadcasting
Closes: #525
This commit is contained in:
Andrii Sievrikov
2023-02-04 20:30:54 -05:00
committed by William Casarin
parent 552402f2b5
commit 04759107a2
7 changed files with 244 additions and 40 deletions

View File

@@ -7,14 +7,14 @@
import Foundation
public struct RelayInfo: Codable {
public struct RelayInfo: Codable, Hashable {
let read: Bool
let write: Bool
static let rw = RelayInfo(read: true, write: true)
}
public struct RelayDescriptor: Codable {
public struct RelayDescriptor: Codable, Hashable {
public let url: URL
public let info: RelayInfo
}