From 56b28b01dbfb50af70c8d764369baa8e6aa6b6e6 Mon Sep 17 00:00:00 2001 From: Till Faelligen <2353100+S7evinK@users.noreply.github.com> Date: Fri, 3 Mar 2023 14:49:41 +0100 Subject: [PATCH] Update the cache with the redacted event --- roomserver/storage/shared/storage.go | 3 +++ 1 file changed, 3 insertions(+) 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 {