mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-08 23:43:11 -06:00
more comment
This commit is contained in:
parent
9079f961f7
commit
e8793ed5c6
|
|
@ -134,6 +134,10 @@ type StateEntryList struct {
|
||||||
// lock on the row holding the latest events for the room.)
|
// lock on the row holding the latest events for the room.)
|
||||||
type RoomRecentEventsUpdater interface {
|
type RoomRecentEventsUpdater interface {
|
||||||
// Store the previous events referenced by an event.
|
// Store the previous events referenced by an event.
|
||||||
|
// This adds the event NID to an entry in the database for each of the previous events.
|
||||||
|
// If there isn't an entry for one of previous events then an entry is created.
|
||||||
|
// If the entry already lists the event NID as a referrer then the entry unmodified.
|
||||||
|
// (i.e. the operation is idempotent)
|
||||||
StorePreviousEvents(eventNID EventNID, previousEventReferences []gomatrixserverlib.EventReference) error
|
StorePreviousEvents(eventNID EventNID, previousEventReferences []gomatrixserverlib.EventReference) error
|
||||||
// Check whether the eventReference is already referenced by another matrix event.
|
// Check whether the eventReference is already referenced by another matrix event.
|
||||||
IsReferenced(eventReference gomatrixserverlib.EventReference) (bool, error)
|
IsReferenced(eventReference gomatrixserverlib.EventReference) (bool, error)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue