Add setting entry point to manage account (OIDC)

This commit is contained in:
Benoit Marty 2023-08-23 12:54:22 +02:00
parent 06a9b129d0
commit 79aa128377
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()