Update output event check

This commit is contained in:
Neil Alexander 2020-09-09 11:20:28 +01:00
parent 3bc10f9674
commit 29d8da614b
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -108,13 +108,13 @@ func (r *Inputer) processRoomEvent(
} }
if err = r.updateLatestEvents( if err = r.updateLatestEvents(
ctx, // context ctx, // context
roomInfo, // room info for the room being updated roomInfo, // room info for the room being updated
stateAtEvent, // state at event (below) stateAtEvent, // state at event (below)
event, // event event, // event
input.SendAsServer, // send as server input.SendAsServer, // send as server
input.TransactionID, // transaction ID input.TransactionID, // transaction ID
input.Kind == api.KindNew, // should we send output events? input.Kind != api.KindRewrite, // should we send output events?
); err != nil { ); err != nil {
return "", fmt.Errorf("r.updateLatestEvents: %w", err) return "", fmt.Errorf("r.updateLatestEvents: %w", err)
} }