From ce658ab8f22e45fb5e9be586973d9aa9984e9cc7 Mon Sep 17 00:00:00 2001 From: Till Faelligen Date: Thu, 24 Feb 2022 08:54:54 +0100 Subject: [PATCH] Fix missing params --- syncapi/routing/routing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncapi/routing/routing.go b/syncapi/routing/routing.go index 51e68ca46..700a56201 100644 --- a/syncapi/routing/routing.go +++ b/syncapi/routing/routing.go @@ -79,7 +79,7 @@ func Setup( })).Methods(http.MethodGet, http.MethodOptions) v3mux.Handle("/rooms/{roomId}/context/{eventId}", - httputil.MakeAuthAPI(gomatrixserverlib.Join, userAPI, func(req *http.Request, device *userapi.Device) util.JSONResponse { + httputil.MakeAuthAPI(gomatrixserverlib.Join, userAPI, cfg.Matrix.UserConsentOptions, httputil.ConsentRequired, func(req *http.Request, device *userapi.Device) util.JSONResponse { vars, err := httputil.URLDecodeMapValues(mux.Vars(req)) if err != nil { return util.ErrorResponse(err)