mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 10:25:35 +03:00
Do not check the baseURL to override if it is the same than the one previously known and used
This commit is contained in:
parent
bdbfbe6175
commit
4caf333769
1 changed files with 2 additions and 0 deletions
|
@ -49,6 +49,8 @@ internal class DefaultSessionCreator @Inject constructor(
|
|||
// remove trailing "/"
|
||||
?.trim { it == '/' }
|
||||
?.takeIf { it.isNotBlank() }
|
||||
// It can be the same value, so in this case, do not check again the validity
|
||||
?.takeIf { it != homeServerConnectionConfig.homeServerUriBase.toString() }
|
||||
?.also { Timber.d("Overriding homeserver url to $it (will check if valid)") }
|
||||
?.let { Uri.parse(it) }
|
||||
?.takeIf {
|
||||
|
|
Loading…
Reference in a new issue