aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTill Faelligen <2353100+S7evinK@users.noreply.github.com>2023-03-03 14:49:41 +0100
committerTill Faelligen <2353100+S7evinK@users.noreply.github.com>2023-03-03 14:49:41 +0100
commit56b28b01dbfb50af70c8d764369baa8e6aa6b6e6 (patch)
tree586314bbd0cc7706d33d3a0833bc3a3f2351c61e
parent9bcd0a2105e127e12ca1bb22b6c5fe8c1923d07e (diff)
Update the cache with the redacted event
-rw-r--r--roomserver/storage/shared/storage.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/roomserver/storage/shared/storage.go b/roomserver/storage/shared/storage.go
index 9ecdcafb..106a8244 100644
--- a/roomserver/storage/shared/storage.go
+++ b/roomserver/storage/shared/storage.go
@@ -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 {