Don't store backfilled events using request context

This commit is contained in:
Neil Alexander 2020-10-05 09:45:11 +01:00
parent 85c43e1bef
commit d5e94124fe
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -412,7 +412,7 @@ func (r *messagesReq) backfill(roomID string, backwardsExtremities map[string][]
// up in responses to sync requests.
for i := range res.Events {
_, err = r.db.WriteEvent(
r.ctx,
context.Background(),
&res.Events[i],
[]gomatrixserverlib.HeaderedEvent{},
[]string{},