From 8e4002831f6681b5f2de1c6490184ed6ed2275fe Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Fri, 28 Jan 2022 13:11:56 +0000 Subject: [PATCH] Call hooks for outliers (#2119) * Move hook call when processing room events * Fix build * Call hooks for outliers too --- roomserver/internal/input/input_events.go | 1 + 1 file changed, 1 insertion(+) diff --git a/roomserver/internal/input/input_events.go b/roomserver/internal/input/input_events.go index 33442140..8f262ebe 100644 --- a/roomserver/internal/input/input_events.go +++ b/roomserver/internal/input/input_events.go @@ -250,6 +250,7 @@ func (r *Inputer) processRoomEvent( // notify anyone about it. if input.Kind == api.KindOutlier { logger.Debug("Stored outlier") + hooks.Run(hooks.KindNewEventPersisted, headered) return nil }