Change screen: propagate current homeserver value
This commit is contained in:
@@ -70,6 +70,10 @@ class Matrix(
|
||||
}
|
||||
}
|
||||
|
||||
fun getHomeserver(): String? = authService.homeserverDetails()?.url()
|
||||
|
||||
fun getHomeserverOrDefault(): String = getHomeserver() ?: "matrix.org"
|
||||
|
||||
suspend fun setHomeserver(homeserver: String) {
|
||||
withContext(coroutineDispatchers.io) {
|
||||
authService.configureHomeserver(homeserver)
|
||||
|
||||
Reference in New Issue
Block a user