Use unstable prefixes

This commit is contained in:
Valere 2021-01-08 09:07:27 +01:00
parent df341d8ea3
commit ab4f2429c4
4 changed files with 8 additions and 8 deletions

View File

@ -51,8 +51,8 @@ object EventType {
const val STATE_ROOM_JOIN_RULES = "m.room.join_rules" const val STATE_ROOM_JOIN_RULES = "m.room.join_rules"
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" const val STATE_SPACE_CHILD = "org.matrix.msc1772.space.child"
/** /**
* Note that this Event has been deprecated, see * Note that this Event has been deprecated, see

View File

@ -18,6 +18,6 @@ package org.matrix.android.sdk.api.session.room.model
object RoomType { object RoomType {
const val SPACE = "m.space" const val SPACE = "org.matrix.msc1772.space" // "m.space"
const val MESSAGING = "m.messaging" // const val MESSAGING = "org.matrix.msc1840.messaging"
} }

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 = "type") val type: String? = null @Json(name = "org.matrix.msc1772.type") val type: String? = null
) )

View File

@ -119,15 +119,15 @@ internal class DefaultPeekSpaceTask @Inject constructor(
peekChildren(childStateEvents, depth + 1, maxDepth) peekChildren(childStateEvents, depth + 1, maxDepth)
) )
) )
} else if (type == RoomType.MESSAGING || type == null) { } else
/** if (type == RoomType.MESSAGING || type == null)*/
{
Timber.v("## SPACE_PEEK: room child $entry") Timber.v("## SPACE_PEEK: room child $entry")
spaceChildResults.add( spaceChildResults.add(
SpaceChildPeekResult( SpaceChildPeekResult(
childId, childPeek, entry.second?.default, entry.second?.order childId, childPeek, entry.second?.default, entry.second?.order
) )
) )
} else {
// ignore for now?
} }
// let's check child info // let's check child info