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