Add setting entry point to manage account (OIDC)

This commit is contained in:
Benoit Marty 2023-08-23 12:54:22 +02:00
parent 6928dc6e44
commit bc57a03a39
11 changed files with 57 additions and 1 deletions

View file

@ -311,6 +311,11 @@ class RustMatrixClient constructor(
return result
}
override suspend fun getAccountManagementUrl(): Result<String?> = withContext(sessionDispatcher) {
runCatching {
client.accountUrl()
}
}
override suspend fun loadUserDisplayName(): Result<String> = withContext(sessionDispatcher) {
runCatching {
client.displayName()