Revert invite change

This commit is contained in:
Neil Alexander 2020-12-03 15:41:17 +00:00
parent b6b85da568
commit a735f9f6bb
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -70,7 +70,7 @@ func InviteV1(
) util.JSONResponse { ) util.JSONResponse {
roomVer := gomatrixserverlib.RoomVersionV1 roomVer := gomatrixserverlib.RoomVersionV1
body := request.Content() body := request.Content()
event, err := gomatrixserverlib.NewEventFromUntrustedJSON(body, roomVer) event, err := gomatrixserverlib.NewEventFromTrustedJSON(body, false, roomVer)
switch err.(type) { switch err.(type) {
case gomatrixserverlib.BadJSONError: case gomatrixserverlib.BadJSONError:
return util.JSONResponse{ return util.JSONResponse{