damus

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

commit 1f6657e471b55195543fff062769d5241512d4f8
parent 062b5dc0403bd8bc04269478c88e47dff34753a2
Author: middlingphys <phys314159265358979chem@gmail.com>
Date:   Thu,  9 Feb 2023 16:46:23 +0900

Remove trailing slash when adding a relay

Changelog-Fixed: Remove trailing slash when adding a relay
Closes: #562

Diffstat:
Mdamus/Views/Relays/RelayConfigView.swift | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/damus/Views/Relays/RelayConfigView.swift b/damus/Views/Relays/RelayConfigView.swift @@ -48,6 +48,10 @@ struct RelayConfigView: View { relay = "wss://" + relay } + if relay.hasSuffix("/") { + relay.removeLast(); + } + guard let url = URL(string: relay) else { return }