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