Element call URL must have https scheme.

This commit is contained in:
Benoit Marty 2023-09-26 15:41:31 +02:00
parent 6eed650ad0
commit 4e658be3cc
3 changed files with 29 additions and 10 deletions

View file

@ -39,7 +39,6 @@
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="http" />
<data android:scheme="https" />
<data android:host="call.element.io" />

View file

@ -21,7 +21,7 @@ import javax.inject.Inject
class CallIntentDataParser @Inject constructor() {
private val validHttpSchemes = sequenceOf("http", "https")
private val validHttpSchemes = sequenceOf("https")
fun parse(data: String?): String? {
val parsedUrl = data?.let { Uri.parse(data) } ?: return null