This commit is contained in:
Benoit Marty 2020-05-12 14:11:14 +02:00
parent 4c31e52892
commit 59d60813fb
3 changed files with 9 additions and 17 deletions

View File

@ -25,7 +25,7 @@ Missing features (list not exhaustive):
- Add email or phone to account (not P1, can be done on Riot-Web) - Add email or phone to account (not P1, can be done on Riot-Web)
- List email and phone of the account (could be done in a dedicated PR) - List email and phone of the account (could be done in a dedicated PR)
- Search contact (not P1) - Search contact (not P1)
- Logout from identity server when user sign out or deactivate his account (pending question in the issue). - Logout from identity server when user sign out or deactivate his account.
## Related MSCs ## Related MSCs
The list can be found here: https://matrix.org/blog/2019/09/27/privacy-improvements-in-synapse-1-4-and-riot-1-4 The list can be found here: https://matrix.org/blog/2019/09/27/privacy-improvements-in-synapse-1-4-and-riot-1-4
@ -69,8 +69,8 @@ The list can be found here: https://matrix.org/blog/2019/09/27/privacy-improveme
- Look up pepper can be updated if it is rotated on the identity server - Look up pepper can be updated if it is rotated on the identity server
- Invitation using 3PID can be done (See #548) (not done yet) - Invitation using 3PID can be done (See #548) (not done yet)
- Homeserver access-token will never be sent to an identity server - Homeserver access-token will never be sent to an identity server
- When user sign-out: logout from the identity server if any? - When user sign-out: logout from the identity server if any.
- When user deactivate account: logout from the identity server if any? - When user deactivate account: logout from the identity server if any.
## Screens ## Screens

View File

@ -31,12 +31,4 @@ internal object HomeServerCapabilitiesMapper {
lastVersionIdentityServerSupported = entity.lastVersionIdentityServerSupported lastVersionIdentityServerSupported = entity.lastVersionIdentityServerSupported
) )
} }
fun map(domain: HomeServerCapabilities): HomeServerCapabilitiesEntity {
return HomeServerCapabilitiesEntity(
canChangePassword = domain.canChangePassword,
maxUploadFileSize = domain.maxUploadFileSize,
lastVersionIdentityServerSupported = domain.lastVersionIdentityServerSupported
)
}
} }

View File

@ -49,18 +49,18 @@ internal class DefaultGetHomeServerCapabilitiesTask @Inject constructor(
return return
} }
val uploadCapabilities = runCatching {
executeRequest<GetUploadCapabilitiesResult>(eventBus) {
apiCall = capabilitiesAPI.getUploadCapabilities()
}
}.getOrNull()
val capabilities = runCatching { val capabilities = runCatching {
executeRequest<GetCapabilitiesResult>(eventBus) { executeRequest<GetCapabilitiesResult>(eventBus) {
apiCall = capabilitiesAPI.getCapabilities() apiCall = capabilitiesAPI.getCapabilities()
} }
}.getOrNull() }.getOrNull()
val uploadCapabilities = runCatching {
executeRequest<GetUploadCapabilitiesResult>(eventBus) {
apiCall = capabilitiesAPI.getUploadCapabilities()
}
}.getOrNull()
val versions = runCatching { val versions = runCatching {
executeRequest<Versions>(null) { executeRequest<Versions>(null) {
apiCall = capabilitiesAPI.getVersions() apiCall = capabilitiesAPI.getVersions()