aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorTill <2353100+S7evinK@users.noreply.github.com>2023-03-01 17:06:47 +0100
committerGitHub <noreply@github.com>2023-03-01 17:06:47 +0100
commit6c20f8f742a7e03710fae81df6ef98bac31da2b1 (patch)
tree202e962951dc41c949a71c7f5c1deb6d1da78843 /internal
parent1aa70b0f56825a4a5f92c38cabb1fe841cec6e18 (diff)
Refactor `StoreEvent`, add `MaybeRedactEvent`, create an `EventDatabase` (#2989)
This PR changes the following: - `StoreEvent` now only stores an event (and possibly prev event), instead of also doing redactions - Adds a `MaybeRedactEvent` (pulled out from `StoreEvent`), which should be called after storing events - a few other things
Diffstat (limited to 'internal')
-rw-r--r--internal/hooks/hooks.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/hooks/hooks.go b/internal/hooks/hooks.go
index 223282a2..d6c79e98 100644
--- a/internal/hooks/hooks.go
+++ b/internal/hooks/hooks.go
@@ -16,7 +16,9 @@
// Hooks can only be run in monolith mode.
package hooks
-import "sync"
+import (
+ "sync"
+)
const (
// KindNewEventPersisted is a hook which is called with *gomatrixserverlib.HeaderedEvent