diff --git a/damus/Nostr/RelayURL.swift b/damus/Nostr/RelayURL.swift index 9ad75e063..a5568916f 100644 --- a/damus/Nostr/RelayURL.swift +++ b/damus/Nostr/RelayURL.swift @@ -17,12 +17,7 @@ public struct RelayURL: Hashable, Equatable, Codable, CodingKeyRepresentable { init?(_ str: String) { guard let last = str.last else { return nil } - var urlstr = str - if last == "/" { - urlstr = String(str.dropLast(1)) - } - - guard let url = URL(string: urlstr) else { + guard let url = URL(string: str) else { return nil } diff --git a/damus/Views/AddRelayView.swift b/damus/Views/AddRelayView.swift index 280fcfee4..65a693558 100644 --- a/damus/Views/AddRelayView.swift +++ b/damus/Views/AddRelayView.swift @@ -82,12 +82,6 @@ struct AddRelayView: View { new_relay = "wss://" + new_relay } - /* - if new_relay.hasSuffix("/") { - new_relay.removeLast(); - } - */ - guard let url = RelayURL(new_relay), let ev = state.contacts.event, let keypair = state.keypair.to_full() else {