mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Merge pull request #89 from RyanRory/join-publich-chat-without-https
Enable the User to Join an Open Group Without Entering "https://"
This commit is contained in:
commit
17a989e9c2
|
@ -258,7 +258,10 @@ private final class EnterChatURLVC : UIViewController {
|
|||
|
||||
// MARK: Interaction
|
||||
@objc private func joinPublicChatIfPossible() {
|
||||
let chatURL = chatURLTextField.text?.trimmingCharacters(in: .whitespaces) ?? ""
|
||||
var chatURL = chatURLTextField.text?.trimmingCharacters(in: .whitespaces) ?? ""
|
||||
if !chatURL.lowercased().starts(with: "http") {
|
||||
chatURL = "https://" + chatURL
|
||||
}
|
||||
joinPublicChatVC.joinPublicChatIfPossible(with: chatURL)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue