mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-08 07:23:10 -06:00
Always update our in-memory ACLs, even for outliers
This commit is contained in:
parent
70322699ab
commit
53b653154a
|
|
@ -360,6 +360,12 @@ func (r *Inputer) processRoomEvent(
|
||||||
// doesn't have any associated state to store and we don't need to
|
// doesn't have any associated state to store and we don't need to
|
||||||
// notify anyone about it.
|
// notify anyone about it.
|
||||||
if input.Kind == api.KindOutlier {
|
if input.Kind == api.KindOutlier {
|
||||||
|
// if the event is an ACL, update our in-memory ACLs now, even if it is an outlier. This is
|
||||||
|
// going to happen on a restart of Dendrite anyway.
|
||||||
|
// ACL updates for non-outliers are handled in `ProduceRoomEvents`
|
||||||
|
if !isRejected && event.Type() == "m.room.server_acl" && event.StateKeyEquals("") {
|
||||||
|
r.ACLs.OnServerACLUpdate(event)
|
||||||
|
}
|
||||||
logger.WithField("rejected", isRejected).Debug("Stored outlier")
|
logger.WithField("rejected", isRejected).Debug("Stored outlier")
|
||||||
hooks.Run(hooks.KindNewEventPersisted, headered)
|
hooks.Run(hooks.KindNewEventPersisted, headered)
|
||||||
return nil
|
return nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue