Merge pull request #3284 from vector-im/feature/bca/spaces_stable_prefixes

stable prefix for msc1772
This commit is contained in:
Benoit Marty 2021-05-06 11:09:21 +02:00 committed by GitHub
commit f704539c89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 8 deletions

View file

@ -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

View file

@ -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"
} }

View file

@ -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"
} }
} }

View file

@ -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
) )