|
|
|
|
@ -62,10 +62,9 @@ class JoinPublicChatActivity : PassphraseRequiredActionBarActivity(), ScanQRCode
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fun joinPublicChatIfPossible(url: String) {
|
|
|
|
|
runOnUiThread {
|
|
|
|
|
if (!Patterns.WEB_URL.matcher(url).matches() || !url.startsWith("https://")) {
|
|
|
|
|
Toast.makeText(this, "Invalid URL", Toast.LENGTH_SHORT).show()
|
|
|
|
|
return@runOnUiThread
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
showLoader()
|
|
|
|
|
|
|
|
|
|
@ -79,7 +78,6 @@ class JoinPublicChatActivity : PassphraseRequiredActionBarActivity(), ScanQRCode
|
|
|
|
|
Toast.makeText(this, "Couldn't join channel", Toast.LENGTH_SHORT).show()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// endregion
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|