a slight change to match master auth.Data

This commit is contained in:
terrill 2018-07-27 11:27:24 +08:00
parent 9c36971b11
commit fcf90dc524
2 changed files with 2 additions and 2 deletions

View file

@ -21,10 +21,10 @@ import (
"github.com/matrix-org/dendrite/clientapi/auth/authtypes"
"github.com/matrix-org/dendrite/clientapi/auth/storage/devices"
"github.com/matrix-org/dendrite/clientapi/auth"
"github.com/matrix-org/dendrite/common"
"github.com/matrix-org/dendrite/encryptoapi/storage"
"github.com/matrix-org/util"
"github.com/matrix-org/dendrite/clientapi/auth"
)
const pathPrefixUnstable = "/_matrix/client/unstable"

View file

@ -58,7 +58,7 @@ func Setup(apiMux *mux.Router, srp *sync.RequestPool, syncDB *storage.SyncServer
})).Methods(http.MethodGet, http.MethodOptions)
unstablemux.Handle("/sendToDevice/{eventType}/{txnId}",
common.MakeAuthAPI("look up changes", deviceDB, func(req *http.Request, device *authtypes.Device) util.JSONResponse {
common.MakeAuthAPI("look up changes", authData, func(req *http.Request, device *authtypes.Device) util.JSONResponse {
vars := mux.Vars(req)
eventType := vars["eventType"]
txnID := vars["txnId"]