mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-07-29 12:42:46 +00:00
Send client events to appservices (#1603)
* Send client events to appservices * FormatSync instead of FormatAll
This commit is contained in:
parent
bdf6490375
commit
417c7d3569
4 changed files with 8 additions and 9 deletions
|
@ -185,14 +185,14 @@ func createTransaction(
|
|||
}
|
||||
}
|
||||
|
||||
var ev []*gomatrixserverlib.Event
|
||||
for _, e := range events {
|
||||
ev = append(ev, e.Event)
|
||||
var ev []*gomatrixserverlib.HeaderedEvent
|
||||
for i := range events {
|
||||
ev = append(ev, &events[i])
|
||||
}
|
||||
|
||||
// Create a transaction and store the events inside
|
||||
transaction := gomatrixserverlib.ApplicationServiceTransaction{
|
||||
Events: ev,
|
||||
Events: gomatrixserverlib.HeaderedToClientEvents(ev, gomatrixserverlib.FormatAll),
|
||||
}
|
||||
|
||||
transactionJSON, err = json.Marshal(transaction)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue