mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
URL Decode
This commit is contained in:
parent
dbe14ce0bb
commit
bfd974f698
1 changed files with 2 additions and 1 deletions
|
@ -19,6 +19,7 @@ package im.vector.app.features.call.conference
|
||||||
import android.net.Uri
|
import android.net.Uri
|
||||||
import im.vector.app.R
|
import im.vector.app.R
|
||||||
import im.vector.app.core.resources.StringProvider
|
import im.vector.app.core.resources.StringProvider
|
||||||
|
import java.net.URLDecoder
|
||||||
|
|
||||||
class JitsiWidgetProperties(private val uriString: String, val stringProvider: StringProvider) {
|
class JitsiWidgetProperties(private val uriString: String, val stringProvider: StringProvider) {
|
||||||
val domain: String by lazy { configs["conferenceDomain"] ?: stringProvider.getString(R.string.preferred_jitsi_domain) }
|
val domain: String by lazy { configs["conferenceDomain"] ?: stringProvider.getString(R.string.preferred_jitsi_domain) }
|
||||||
|
@ -31,7 +32,7 @@ class JitsiWidgetProperties(private val uriString: String, val stringProvider: S
|
||||||
private val configs: Map<String, String?> by lazy {
|
private val configs: Map<String, String?> by lazy {
|
||||||
configString?.split("&")
|
configString?.split("&")
|
||||||
?.map { it.split("=") }
|
?.map { it.split("=") }
|
||||||
?.map { (key, value) -> key to value }
|
?.map { (key, value) -> key to URLDecoder.decode(value, "UTF-8") }
|
||||||
?.toMap()
|
?.toMap()
|
||||||
?: mapOf()
|
?: mapOf()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue