damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 6f35de65f93b4967caafe3279aafeb15ced2b84c
parent 65f365189655040a8bf339bed8c9db106fb05cf3
Author: ericholguin <eric.holguinsanchez@gmail.com>
Date:   Fri,  8 Sep 2023 21:18:23 -0600

relays: add icon field to metadata

Diffstat:
Mdamus/Nostr/Relay.swift | 1+
Mdamus/Views/Relays/RelayDetailView.swift | 2+-
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/damus/Nostr/Relay.swift b/damus/Nostr/Relay.swift @@ -75,6 +75,7 @@ struct RelayMetadata: Codable { let version: String? let limitation: Limitations? let payments_url: String? + let icon: String? var is_paid: Bool { return limitation?.payment_required ?? false diff --git a/damus/Views/Relays/RelayDetailView.swift b/damus/Views/Relays/RelayDetailView.swift @@ -173,7 +173,7 @@ struct RelayDetailView: View { struct RelayDetailView_Previews: PreviewProvider { static var previews: some View { - let metadata = RelayMetadata(name: "name", description: "desc", pubkey: test_pubkey, contact: "contact", supported_nips: [1,2,3], software: "software", version: "version", limitation: Limitations.empty, payments_url: "https://jb55.com") + let metadata = RelayMetadata(name: "name", description: "desc", pubkey: test_pubkey, contact: "contact", supported_nips: [1,2,3], software: "software", version: "version", limitation: Limitations.empty, payments_url: "https://jb55.com", icon: "") RelayDetailView(state: test_damus_state(), relay: "relay", nip11: metadata) } }