RoomVersionService

interface RoomVersionService

Functions

Link copied to clipboard
abstract fun getRecommendedVersion(): String

Get the recommended room version for the current homeserver.

Link copied to clipboard
abstract fun getRoomVersion(): String

Return the room version of this room.

Link copied to clipboard
abstract fun isUsingUnstableRoomVersion(): Boolean

Return true if the current room version is declared unstable by the homeserver.

Link copied to clipboard
abstract suspend fun upgradeToVersion(version: String): String

Upgrade to the given room version.

Link copied to clipboard
abstract fun userMayUpgradeRoom(userId: String): Boolean

Ask if the user has enough power level to upgrade the room.