mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-29 06:28:45 +03:00
Fix Jitsi-hosted jitsi conferences not loading (#2846)
This commit is contained in:
parent
97bdd14880
commit
dae035aa76
2 changed files with 3 additions and 3 deletions
1
changelog.d/2846.bugfix
Normal file
1
changelog.d/2846.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Jitsi-hosted jitsi conferences not loading
|
|
@ -27,8 +27,7 @@ class JitsiWidgetPropertiesFactory @Inject constructor(
|
|||
private val stringProvider: StringProvider
|
||||
) {
|
||||
fun create(url: String): JitsiWidgetProperties {
|
||||
val configString = tryOrNull { Uri.parse(url) }?.fragment
|
||||
|
||||
val configString = tryOrNull { Uri.parse(url) }?.encodedQuery
|
||||
val configs = configString?.split("&")
|
||||
?.map { it.split("=") }
|
||||
?.filter { it.size == 2 }
|
||||
|
@ -38,7 +37,7 @@ class JitsiWidgetPropertiesFactory @Inject constructor(
|
|||
|
||||
return JitsiWidgetProperties(
|
||||
domain = configs["conferenceDomain"] ?: stringProvider.getString(R.string.preferred_jitsi_domain),
|
||||
confId = configs["conferenceId"],
|
||||
confId = configs["conferenceId"] ?: configs["confId"],
|
||||
displayName = configs["displayName"],
|
||||
avatarUrl = configs["avatarUrl"]
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue