Use IRoomVersion (#3064)

This is a step towards allowing arbitrary room version impls.
This commit is contained in:
kegsay 2023-04-24 11:50:37 +01:00 committed by GitHub
parent 1647213fac
commit 4679098a64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 25 additions and 20 deletions

View file

@ -27,7 +27,7 @@ import (
func GetCapabilities() util.JSONResponse {
versionsMap := map[gomatrixserverlib.RoomVersion]string{}
for v, desc := range version.SupportedRoomVersions() {
if desc.Stable {
if desc.Stable() {
versionsMap[v] = "stable"
} else {
versionsMap[v] = "unstable"