diff options
Diffstat (limited to 'federationapi')
-rw-r--r-- | federationapi/routing/invite.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/federationapi/routing/invite.go b/federationapi/routing/invite.go index b13e59f0..88071892 100644 --- a/federationapi/routing/invite.go +++ b/federationapi/routing/invite.go @@ -77,6 +77,7 @@ func InviteV1( ) util.JSONResponse { roomVer := gomatrixserverlib.RoomVersionV1 body := request.Content() + // roomVer is hardcoded to v1 so we know we won't panic on Must event, err := gomatrixserverlib.MustGetRoomVersion(roomVer).NewEventFromTrustedJSON(body, false) switch err.(type) { case gomatrixserverlib.BadJSONError: |