Skip to content

Commit

Permalink
Fix demo app to not crash when removing relays (nostr-sdk#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyiu authored and RandyMcMillan committed Sep 1, 2024
1 parent a795f18 commit 963a5af
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/NostrSDK/RelayPool.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import os.log
public final class RelayPool: ObservableObject, RelayOperating {

/// The set of relays.
public private(set) var relays = Set<Relay>()
@Published public private(set) var relays = Set<Relay>()

/// A Publisher that publishes all events from all relays.
@Published public private(set) var events = PassthroughSubject<RelayEvent, Never>()
Expand Down
1 change: 0 additions & 1 deletion demo/NostrSDKDemo/Demo Views/DirectMessageDemoView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ struct DirectMessageDemoView: View, EventCreating {
} else {
return Keypair(hex: senderPrivateKey)
}
return nil
}

private func publicKey() -> PublicKey? {
Expand Down

0 comments on commit 963a5af

Please sign in to comment.