Robustness

This commit is contained in:
Benoit Marty 2021-02-05 13:56:11 +01:00
parent bfd974f698
commit e27c5c4507

View file

@ -32,8 +32,9 @@ class JitsiWidgetProperties(private val uriString: String, val stringProvider: S
private val configs: Map<String, String?> by lazy {
configString?.split("&")
?.map { it.split("=") }
?.filter { it.size == 2 }
?.map { (key, value) -> key to URLDecoder.decode(value, "UTF-8") }
?.toMap()
?: mapOf()
.orEmpty()
}
}