passing the control of logout devices to the homeserver capabilities model from the entity

This commit is contained in:
Adam Brown 2022-05-31 12:54:45 +01:00
parent 6e3283cb34
commit d9fd627bb1
2 changed files with 8 additions and 2 deletions

View File

@ -54,7 +54,12 @@ data class HomeServerCapabilities(
/**
* True if the home server support threading.
*/
val canUseThreading: Boolean = false
val canUseThreading: Boolean = false,
/**
* True if the home server supports controlling the logout of all devices when changing password.
*/
val canControlLogoutDevices: Boolean = false
) {
enum class RoomCapabilitySupport {

View File

@ -42,7 +42,8 @@ internal object HomeServerCapabilitiesMapper {
lastVersionIdentityServerSupported = entity.lastVersionIdentityServerSupported,
defaultIdentityServerUrl = entity.defaultIdentityServerUrl,
roomVersions = mapRoomVersion(entity.roomVersionsJson),
canUseThreading = entity.canUseThreading
canUseThreading = entity.canUseThreading,
canControlLogoutDevices = entity.canControlLogoutDevices
)
}