Tweaks in client API

This commit is contained in:
Neil Alexander 2021-03-03 11:48:41 +00:00
parent 078aa09a5c
commit 1b580b30b2
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -23,7 +23,6 @@ import (
userapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/util"
log "github.com/sirupsen/logrus"
)
type getEventRequest struct {
@ -38,6 +37,7 @@ type getEventRequest struct {
// GetEvent implements GET /_matrix/client/r0/rooms/{roomId}/event/{eventId}
// https://matrix.org/docs/spec/client_server/r0.4.0.html#get-matrix-client-r0-rooms-roomid-event-eventid
// nolint:gocyclo
func GetEvent(
req *http.Request,
device *userapi.Device,