mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-06 14:33:10 -06:00
Explain what a StateAtEventAndReference is for
This commit is contained in:
parent
e69bc7330c
commit
b7f1de0279
|
|
@ -79,7 +79,10 @@ func (s StateAtEvent) IsStateEvent() bool {
|
|||
return s.EventStateKeyNID != 0
|
||||
}
|
||||
|
||||
// StateAtEventAndReference ...
|
||||
// StateAtEventAndReference is StateAtEvent and gomatrixserverlib.EventReference glued together.
|
||||
// It is used when looking up the latest events in a room in the database.
|
||||
// The gomatrixserverlib.EventReference is used to check whether a new event references the event.
|
||||
// The StateAtEvent is used to construct the current state of the room from the latest events.
|
||||
type StateAtEventAndReference struct {
|
||||
StateAtEvent
|
||||
gomatrixserverlib.EventReference
|
||||
|
|
|
|||
Loading…
Reference in a new issue