This commit is contained in:
Mark Haines 2017-02-21 12:58:57 +00:00
parent bb38ef4433
commit c422a1fdc1

View file

@ -34,7 +34,7 @@ type RoomEventDatabase interface {
AddState(roomNID types.RoomNID, stateBlockNIDs []types.StateBlockNID, state []types.StateEntry) (types.StateSnapshotNID, error)
// Set the state at an event.
SetState(eventNID types.EventNID, stateNID types.StateSnapshotNID) error
// Lookup the latests events in a room in preperation for an update.
// Lookup the latest events in a room in preparation for an update.
// The RoomRecentEventsUpdater must be closed if this doesn't return an error.
// If this returns an error then no further action is required.
GetLatestEventsForUpdate(roomNID types.RoomNID) ([]types.StateAtEventAndReference, types.RoomRecentEventsUpdater, error)