0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-12-24 04:23:49 +01:00

Update the cache with the redacted event

This commit is contained in:
Till Faelligen 2023-03-03 14:49:41 +01:00
parent 9bcd0a2105
commit 56b28b01db
No known key found for this signature in database
GPG key ID: 3DF82D8AB9211D4E

View file

@ -1019,6 +1019,9 @@ func (d *EventDatabase) MaybeRedactEvent(
if err != nil {
return fmt.Errorf("d.RedactionsTable.MarkRedactionValidated: %w", err)
}
d.Cache.StoreRoomServerEvent(redactedEvent.EventNID, redactedEvent.Event)
return nil
})
if wErr != nil {