mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 20:06:51 +03:00
Merge pull request #3284 from vector-im/feature/bca/spaces_stable_prefixes
stable prefix for msc1772
This commit is contained in:
commit
f704539c89
4 changed files with 5 additions and 8 deletions
|
@ -52,11 +52,9 @@ object EventType {
|
||||||
const val STATE_ROOM_GUEST_ACCESS = "m.room.guest_access"
|
const val STATE_ROOM_GUEST_ACCESS = "m.room.guest_access"
|
||||||
const val STATE_ROOM_POWER_LEVELS = "m.room.power_levels"
|
const val STATE_ROOM_POWER_LEVELS = "m.room.power_levels"
|
||||||
|
|
||||||
// const val STATE_SPACE_CHILD = "m.space.child"
|
const val STATE_SPACE_CHILD = "m.space.child"
|
||||||
const val STATE_SPACE_CHILD = "org.matrix.msc1772.space.child"
|
|
||||||
|
|
||||||
// const val STATE_SPACE_PARENT = "m.space.parent"
|
const val STATE_SPACE_PARENT = "m.space.parent"
|
||||||
const val STATE_SPACE_PARENT = "org.matrix.msc1772.space.parent"
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Note that this Event has been deprecated, see
|
* Note that this Event has been deprecated, see
|
||||||
|
|
|
@ -18,6 +18,5 @@ package org.matrix.android.sdk.api.session.room.model
|
||||||
|
|
||||||
object RoomType {
|
object RoomType {
|
||||||
|
|
||||||
const val SPACE = "org.matrix.msc1772.space" // "m.space"
|
const val SPACE = "m.space"
|
||||||
// const val MESSAGING = "org.matrix.msc1840.messaging"
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -160,6 +160,6 @@ open class CreateRoomParams {
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
private const val CREATION_CONTENT_KEY_M_FEDERATE = "m.federate"
|
private const val CREATION_CONTENT_KEY_M_FEDERATE = "m.federate"
|
||||||
private const val CREATION_CONTENT_KEY_ROOM_TYPE = "org.matrix.msc1772.type"
|
private const val CREATION_CONTENT_KEY_ROOM_TYPE = "type"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,5 +28,5 @@ data class RoomCreateContent(
|
||||||
@Json(name = "room_version") val roomVersion: String? = null,
|
@Json(name = "room_version") val roomVersion: String? = null,
|
||||||
@Json(name = "predecessor") val predecessor: Predecessor? = null,
|
@Json(name = "predecessor") val predecessor: Predecessor? = null,
|
||||||
// Defines the room type, see #RoomType (user extensible)
|
// Defines the room type, see #RoomType (user extensible)
|
||||||
@Json(name = "org.matrix.msc1772.type") val type: String? = null
|
@Json(name = "type") val type: String? = null
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue