mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-23 14:53:10 -06:00
Process events actually
This commit is contained in:
parent
ec670487f6
commit
f4555b870f
|
|
@ -129,11 +129,6 @@ func (s *OutputRoomEventConsumer) onNewRoomEvent(
|
|||
ctx context.Context, msg api.OutputNewRoomEvent,
|
||||
) error {
|
||||
ev := msg.Event
|
||||
if msg.Type == api.OutputRoomState {
|
||||
s.notifyKeyChanges(&ev)
|
||||
return nil
|
||||
}
|
||||
|
||||
addsStateEvents := msg.AddsState()
|
||||
|
||||
ev, err := s.updateStateEvent(ev)
|
||||
|
|
@ -155,7 +150,7 @@ func (s *OutputRoomEventConsumer) onNewRoomEvent(
|
|||
msg.AddsStateEventIDs,
|
||||
msg.RemovesStateEventIDs,
|
||||
msg.TransactionID,
|
||||
false,
|
||||
msg.Type == api.OutputRoomState,
|
||||
)
|
||||
if err != nil {
|
||||
// panic rather than continue with an inconsistent database
|
||||
|
|
|
|||
Loading…
Reference in a new issue