SpaceParentContent

@JsonClass(generateAdapter = true)
data class SpaceParentContent(@Json(name = "via") val via: List<String>? = null, @Json(name = "canonical") val canonical: Boolean? = false)

Rooms can claim parents via the m.space.parent state event. { "type": "m.space.parent", "state_key": "!space:example.com", "content": { "via": "example.com", "canonical": true, } }

Constructors

Link copied to clipboard
fun SpaceParentContent(@Json(name = "via") via: List<String>? = null, @Json(name = "canonical") canonical: Boolean? = false)

Properties

Link copied to clipboard
val canonical: Boolean? = false

Canonical determines whether this is the main parent for the space. When a user joins a room with a canonical parent, clients may switch to view the room in the context of that space, peeking into it in order to find other rooms and group them together. In practice, well behaved rooms should only have one canonical parent, but given this is not enforced: if multiple are present the client should select the one with the lowest room ID, as determined via a lexicographic utf-8 ordering.

Link copied to clipboard
val via: List<String>? = null

Key which gives a list of candidate servers that can be used to join the parent. Parents where via is not present are ignored.