mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-07-31 13:22:46 +00:00
Use IRoomVersion (#3064)
This is a step towards allowing arbitrary room version impls.
This commit is contained in:
parent
1647213fac
commit
4679098a64
7 changed files with 25 additions and 20 deletions
|
@ -909,7 +909,7 @@ func TestCapabilities(t *testing.T) {
|
|||
// construct the expected result
|
||||
versionsMap := map[gomatrixserverlib.RoomVersion]string{}
|
||||
for v, desc := range version.SupportedRoomVersions() {
|
||||
if desc.Stable {
|
||||
if desc.Stable() {
|
||||
versionsMap[v] = "stable"
|
||||
} else {
|
||||
versionsMap[v] = "unstable"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue