diff --git a/federationapi/routing/send.go b/federationapi/routing/send.go index b34a75f6f..4c92c7e5e 100644 --- a/federationapi/routing/send.go +++ b/federationapi/routing/send.go @@ -48,7 +48,8 @@ func Send( } var txnEvents struct { - Events []json.RawMessage `json:"pdus"` + PDUs []json.RawMessage `json:"pdus"` + EDUs []json.RawMessage `json:"edus"` } if err := json.Unmarshal(request.Content(), &txnEvents); err != nil { @@ -58,7 +59,7 @@ func Send( } } - t.PDUs = txnEvents.Events + t.PDUs = txnEvents.PDUs t.Origin = request.Origin() t.TransactionID = txnID t.Destination = cfg.Matrix.ServerName