|
|
@ -259,7 +259,7 @@ private final class EnterChatURLVC : UIViewController {
|
|
|
|
// MARK: Interaction
|
|
|
|
// MARK: Interaction
|
|
|
|
@objc private func joinPublicChatIfPossible() {
|
|
|
|
@objc private func joinPublicChatIfPossible() {
|
|
|
|
var chatURL = chatURLTextField.text?.trimmingCharacters(in: .whitespaces) ?? ""
|
|
|
|
var chatURL = chatURLTextField.text?.trimmingCharacters(in: .whitespaces) ?? ""
|
|
|
|
if !chatURL.starts(with: "http") {
|
|
|
|
if !chatURL.lowercased().starts(with: "http") {
|
|
|
|
chatURL = "https://" + chatURL
|
|
|
|
chatURL = "https://" + chatURL
|
|
|
|
}
|
|
|
|
}
|
|
|
|
joinPublicChatVC.joinPublicChatIfPossible(with: chatURL)
|
|
|
|
joinPublicChatVC.joinPublicChatIfPossible(with: chatURL)
|
|
|
|