We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d0af23 commit 040da13Copy full SHA for 040da13
features/call/src/test/kotlin/io/element/android/features/call/CallIntentDataParserTests.kt
@@ -126,4 +126,12 @@ class CallIntentDataParserTests {
126
val url = "io.element.call:/?url="
127
assertThat(callIntentDataParser.parse(url)).isNull()
128
}
129
+
130
+ @Test
131
+ fun `element invalid scheme returns null`() {
132
+ val embeddedUrl = "http://call.element.io/some-actual-call?with=parameters"
133
+ val encodedUrl = URLEncoder.encode(embeddedUrl, "utf-8")
134
+ val url = "bad.scheme:/?url=$encodedUrl"
135
+ assertThat(callIntentDataParser.parse(url)).isNull()
136
+ }
137
0 commit comments