damus

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

commit 07c504f70174524d8358d1da4040035be62f00ef
parent d58d7775413e7081b13e6e40f1266471ea66ef3c
Author: William Casarin <jb55@jb55.com>
Date:   Mon, 25 Mar 2024 09:47:09 +0000

relay: use hostname in relay list instead of full URL

We already have the full relay URL under the name, we don't need to
repeat it and this is a bit cleaner.

Before:

wss://damus.io
wss://damus.io

After:

damus.io
wss://damus.io

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mdamus/Views/Relays/RelayView.swift | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/damus/Views/Relays/RelayView.swift b/damus/Views/Relays/RelayView.swift @@ -45,7 +45,7 @@ struct RelayView: View { VStack(alignment: .leading) { HStack { - Text(meta?.name ?? relay.absoluteString) + Text(meta?.name ?? relay.url.host() ?? relay.url.absoluteString) .font(.headline) .padding(.bottom, 2) .lineLimit(1)