Fix type of room_version in make_join

This commit is contained in:
Neil Alexander 2020-03-06 12:15:59 +00:00
parent fb3f97e9fe
commit 45f60e7a65

View file

@ -17,6 +17,7 @@ package routing
import ( import (
"encoding/json" "encoding/json"
"net/http" "net/http"
"strconv"
"time" "time"
"github.com/matrix-org/dendrite/clientapi/jsonerror" "github.com/matrix-org/dendrite/clientapi/jsonerror"
@ -102,7 +103,7 @@ func MakeJoin(
Code: http.StatusOK, Code: http.StatusOK,
JSON: map[string]interface{}{ JSON: map[string]interface{}{
"event": builder, "event": builder,
"room_version": vQueryRes.RoomVersion, "room_version": strconv.Itoa(vQueryRes.RoomVersion),
}, },
} }
} }