From 892180cb2c2315ed5d0c8f93e45767273a81f14e Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 26 Feb 2020 17:06:11 +0000 Subject: [PATCH] Try that again --- clientapi/routing/createroom.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clientapi/routing/createroom.go b/clientapi/routing/createroom.go index 00e03bf44..dedc84e9e 100644 --- a/clientapi/routing/createroom.go +++ b/clientapi/routing/createroom.go @@ -182,7 +182,9 @@ func createRoom( } r.CreationContent["creator"] = userID - r.CreationContent["room_version"] = strconv.Itoa(roomserverVersion.GetDefaultRoomVersion()) + + defaultVersion := roomserverVersion.GetDefaultRoomVersion() + r.CreationContent["room_version"] = strconv.Itoa(int(defaultVersion)) // TODO: visibility/presets/raw initial state // TODO: Create room alias association