mirror of
https://github.com/element-hq/element-android
synced 2024-12-18 15:24:33 +03:00
Merge pull request #4935 from vector-im/feature/bma/fix_legals
Fix #4919
This commit is contained in:
commit
a16a6a6eeb
2 changed files with 2 additions and 1 deletions
1
changelog.d/4935.bugfix
Normal file
1
changelog.d/4935.bugfix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Fix a wrong network error issue in the Legals screen
|
|
@ -64,7 +64,7 @@ internal class DefaultTermsService @Inject constructor(
|
||||||
*/
|
*/
|
||||||
override suspend fun getHomeserverTerms(baseUrl: String): TermsResponse {
|
override suspend fun getHomeserverTerms(baseUrl: String): TermsResponse {
|
||||||
return try {
|
return try {
|
||||||
val request = baseUrl + NetworkConstants.URI_API_PREFIX_PATH_R0 + "register"
|
val request = baseUrl.ensureTrailingSlash() + NetworkConstants.URI_API_PREFIX_PATH_R0 + "register"
|
||||||
executeRequest(null) {
|
executeRequest(null) {
|
||||||
termsAPI.register(request)
|
termsAPI.register(request)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue