mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-26 00:03:09 -06:00
Revert invite change
This commit is contained in:
parent
b6b85da568
commit
a735f9f6bb
|
|
@ -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{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue