passing the control of logout devices to the homeserver capabilities model from the entity
This commit is contained in:
parent
6e3283cb34
commit
d9fd627bb1
|
@ -54,7 +54,12 @@ data class HomeServerCapabilities(
|
||||||
/**
|
/**
|
||||||
* True if the home server support threading.
|
* 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 {
|
enum class RoomCapabilitySupport {
|
||||||
|
|
|
@ -42,7 +42,8 @@ internal object HomeServerCapabilitiesMapper {
|
||||||
lastVersionIdentityServerSupported = entity.lastVersionIdentityServerSupported,
|
lastVersionIdentityServerSupported = entity.lastVersionIdentityServerSupported,
|
||||||
defaultIdentityServerUrl = entity.defaultIdentityServerUrl,
|
defaultIdentityServerUrl = entity.defaultIdentityServerUrl,
|
||||||
roomVersions = mapRoomVersion(entity.roomVersionsJson),
|
roomVersions = mapRoomVersion(entity.roomVersionsJson),
|
||||||
canUseThreading = entity.canUseThreading
|
canUseThreading = entity.canUseThreading,
|
||||||
|
canControlLogoutDevices = entity.canControlLogoutDevices
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue