Process events actually

This commit is contained in:
Neil Alexander 2020-09-09 17:45:33 +01:00
parent ec670487f6
commit f4555b870f
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -129,11 +129,6 @@ func (s *OutputRoomEventConsumer) onNewRoomEvent(
ctx context.Context, msg api.OutputNewRoomEvent, ctx context.Context, msg api.OutputNewRoomEvent,
) error { ) error {
ev := msg.Event ev := msg.Event
if msg.Type == api.OutputRoomState {
s.notifyKeyChanges(&ev)
return nil
}
addsStateEvents := msg.AddsState() addsStateEvents := msg.AddsState()
ev, err := s.updateStateEvent(ev) ev, err := s.updateStateEvent(ev)
@ -155,7 +150,7 @@ func (s *OutputRoomEventConsumer) onNewRoomEvent(
msg.AddsStateEventIDs, msg.AddsStateEventIDs,
msg.RemovesStateEventIDs, msg.RemovesStateEventIDs,
msg.TransactionID, msg.TransactionID,
false, msg.Type == api.OutputRoomState,
) )
if err != nil { if err != nil {
// panic rather than continue with an inconsistent database // panic rather than continue with an inconsistent database