aboutsummaryrefslogtreecommitdiff
path: root/clientapi/routing/createroom.go
diff options
context:
space:
mode:
Diffstat (limited to 'clientapi/routing/createroom.go')
-rw-r--r--clientapi/routing/createroom.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/clientapi/routing/createroom.go b/clientapi/routing/createroom.go
index 320f236c..47e3ba1c 100644
--- a/clientapi/routing/createroom.go
+++ b/clientapi/routing/createroom.go
@@ -171,7 +171,7 @@ func createRoom(
// Clobber keys: creator, room_version
- roomVersion := roomserverVersion.DefaultRoomVersion()
+ roomVersion := rsAPI.DefaultRoomVersion()
if createRequest.RoomVersion != "" {
candidateVersion := gomatrixserverlib.RoomVersion(createRequest.RoomVersion)
_, roomVersionError := roomserverVersion.SupportedRoomVersion(candidateVersion)