Call hooks for outliers (#2119)

* Move hook call when processing room events

* Fix build

* Call hooks for outliers too
This commit is contained in:
Neil Alexander 2022-01-28 13:11:56 +00:00 committed by GitHub
parent e9fbad6f20
commit 8e4002831f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}