more comments

This commit is contained in:
Mark Haines 2017-08-08 16:12:02 +01:00
parent 0768166cd7
commit 4ffc180c68

View file

@ -84,13 +84,21 @@ type latestEventsUpdater struct {
roomNID types.RoomNID roomNID types.RoomNID
stateAtEvent types.StateAtEvent stateAtEvent types.StateAtEvent
event gomatrixserverlib.Event event gomatrixserverlib.Event
// Which server to send this event as.
sendAsServer string sendAsServer string
// The eventID of the event that was processed before this one.
lastEventIDSent string lastEventIDSent string
// The latest events in the room after processing this event.
latest []types.StateAtEventAndReference latest []types.StateAtEventAndReference
// The state entries removed from and added to the current state of the
// room as a result of processing this event. They are sorted lists.
removed []types.StateEntry removed []types.StateEntry
added []types.StateEntry added []types.StateEntry
// The state entries that are removed and added to recover the state before
// the event being processed. They are sorted lists.
stateBeforeEventRemoves []types.StateEntry stateBeforeEventRemoves []types.StateEntry
stateBeforeEventAdds []types.StateEntry stateBeforeEventAdds []types.StateEntry
// The snapshots of current state before and after processing this event
oldStateNID types.StateSnapshotNID oldStateNID types.StateSnapshotNID
newStateNID types.StateSnapshotNID newStateNID types.StateSnapshotNID
} }