aboutsummaryrefslogtreecommitdiff
path: root/appservice
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2020-12-02 15:14:12 +0000
committerGitHub <noreply@github.com>2020-12-02 15:14:12 +0000
commit417c7d3569151ddd54c1264a8241b611e58c2acd (patch)
tree81198a449287f9d4802e665c142bfccfb3334953 /appservice
parentbdf64903756414cf5a542af645b2dc09875787cc (diff)
Send client events to appservices (#1603)
* Send client events to appservices * FormatSync instead of FormatAll
Diffstat (limited to 'appservice')
-rw-r--r--appservice/workers/transaction_scheduler.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/appservice/workers/transaction_scheduler.go b/appservice/workers/transaction_scheduler.go
index cc990748..6e8e8f4a 100644
--- a/appservice/workers/transaction_scheduler.go
+++ b/appservice/workers/transaction_scheduler.go
@@ -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)