Fix mobile link (#4805)
* Fix path of mobile link. Adding a trailing `/` * Reduce brain pressure.
This commit is contained in:
parent
9dbaa2ed40
commit
37344a4f7d
4 changed files with 10 additions and 10 deletions
|
|
@ -19,7 +19,7 @@ class DefaultLoginIntentResolver @Inject constructor() : LoginIntentResolver {
|
|||
override fun parse(uriString: String): LoginParams? {
|
||||
val uri = uriString.toUri()
|
||||
if (uri.host != "mobile.element.io") return null
|
||||
if (uri.path?.startsWith("/element")?.not() == true) return null
|
||||
if (uri.path.orEmpty().startsWith("/element").not()) return null
|
||||
val accountProvider = uri.getQueryParameter("account_provider") ?: return null
|
||||
val loginHint = uri.getQueryParameter("login_hint")
|
||||
return LoginParams(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue