diff --git a/Sources/NostrSDK/RelayPool.swift b/Sources/NostrSDK/RelayPool.swift index cdd30a5..0db1bad 100644 --- a/Sources/NostrSDK/RelayPool.swift +++ b/Sources/NostrSDK/RelayPool.swift @@ -14,7 +14,7 @@ import os.log public final class RelayPool: ObservableObject, RelayOperating { /// The set of relays. - public private(set) var relays = Set() + @Published public private(set) var relays = Set() /// A Publisher that publishes all events from all relays. @Published public private(set) var events = PassthroughSubject() diff --git a/demo/NostrSDKDemo/Demo Views/DirectMessageDemoView.swift b/demo/NostrSDKDemo/Demo Views/DirectMessageDemoView.swift index 1c70186..dbe7659 100644 --- a/demo/NostrSDKDemo/Demo Views/DirectMessageDemoView.swift +++ b/demo/NostrSDKDemo/Demo Views/DirectMessageDemoView.swift @@ -59,7 +59,6 @@ struct DirectMessageDemoView: View, EventCreating { } else { return Keypair(hex: senderPrivateKey) } - return nil } private func publicKey() -> PublicKey? {