mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 20:06:51 +03:00
passing the control of logout devices to the homeserver capabilities model from the entity
This commit is contained in:
parent
6e3283cb34
commit
d9fd627bb1
2 changed files with 8 additions and 2 deletions
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue