From f70d0d481918a0917cff1a4df2588b8f78dbaf88 Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Tue, 21 Feb 2017 13:50:26 +0000 Subject: [PATCH] Explain the semantics of SetLatestEvents a bit? --- src/github.com/matrix-org/dendrite/roomserver/types/types.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/github.com/matrix-org/dendrite/roomserver/types/types.go b/src/github.com/matrix-org/dendrite/roomserver/types/types.go index c97af06d7..9187a21c7 100644 --- a/src/github.com/matrix-org/dendrite/roomserver/types/types.go +++ b/src/github.com/matrix-org/dendrite/roomserver/types/types.go @@ -138,6 +138,7 @@ type RoomRecentEventsUpdater interface { // Check whether the eventReference is already referenced by another matrix event. IsReferenced(eventReference gomatrixserverlib.EventReference) (bool, error) // Set the list of latest events for the room. + // This replaces the current list stored in the database with the given list. SetLatestEvents(roomNID RoomNID, latest []StateAtEventAndReference) error // Commit the transaction Commit() error