diff --git a/federationapi/routing/invite.go b/federationapi/routing/invite.go index d9670d82a..8795118ee 100644 --- a/federationapi/routing/invite.go +++ b/federationapi/routing/invite.go @@ -70,7 +70,7 @@ func InviteV1( ) util.JSONResponse { roomVer := gomatrixserverlib.RoomVersionV1 body := request.Content() - event, err := gomatrixserverlib.NewEventFromUntrustedJSON(body, roomVer) + event, err := gomatrixserverlib.NewEventFromTrustedJSON(body, false, roomVer) switch err.(type) { case gomatrixserverlib.BadJSONError: return util.JSONResponse{