mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-03-01 06:12:59 +00:00
Put redactions in the writer goroutine
This commit is contained in:
parent
a9f4d83d30
commit
fcdb90c91b
1 changed files with 4 additions and 1 deletions
|
@ -587,7 +587,10 @@ func (d *Database) RedactEvent(ctx context.Context, redactedEventID string, reda
|
||||||
}
|
}
|
||||||
|
|
||||||
newEvent := ev.Headered(redactedBecause.RoomVersion)
|
newEvent := ev.Headered(redactedBecause.RoomVersion)
|
||||||
|
err = d.Writer.Do(nil, nil, func(txn *sql.Tx) error {
|
||||||
return d.OutputEvents.UpdateEventJSON(ctx, &newEvent)
|
return d.OutputEvents.UpdateEventJSON(ctx, &newEvent)
|
||||||
|
})
|
||||||
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// getResponseWithPDUsForCompleteSync creates a response and adds all PDUs needed
|
// getResponseWithPDUsForCompleteSync creates a response and adds all PDUs needed
|
||||||
|
|
Loading…
Reference in a new issue