mirror of
https://github.com/matrix-org/dendrite
synced 2024-09-10 21:21:51 +02:00
Use new gmsl RelayEvents type for send_relay request body
This commit is contained in:
parent
7b3334778f
commit
b935da6c33
1 changed files with 1 additions and 5 deletions
|
@ -36,11 +36,7 @@ func SendTransactionToRelay(
|
|||
) util.JSONResponse {
|
||||
logrus.Infof("Processing send_relay for %s", userID.Raw())
|
||||
|
||||
var txnEvents struct {
|
||||
PDUs []json.RawMessage `json:"pdus"`
|
||||
EDUs []gomatrixserverlib.EDU `json:"edus"`
|
||||
}
|
||||
|
||||
var txnEvents gomatrixserverlib.RelayEvents
|
||||
if err := json.Unmarshal(fedReq.Content(), &txnEvents); err != nil {
|
||||
logrus.Info("The request body could not be decoded into valid JSON." + err.Error())
|
||||
return util.JSONResponse{
|
||||
|
|
Loading…
Reference in a new issue