MCPcopy Create free account
hub / github.com/daodst/chat / LatestEventIDs

Method LatestEventIDs

roomserver/storage/interface.go:101–101  ·  view source on GitHub ↗

Look up event references for the latest events in the room and the current state snapshot. Returns the latest events, the current state and the maximum depth of the latest events plus 1. Returns an error if there was a problem talking to the database.

(ctx context.Context, roomNID types.RoomNID)

Source from the content-addressed store, hash-verified

99 // Returns the latest events, the current state and the maximum depth of the latest events plus 1.
100 // Returns an error if there was a problem talking to the database.
101 LatestEventIDs(ctx context.Context, roomNID types.RoomNID) ([]gomatrixserverlib.EventReference, types.StateSnapshotNID, int64, error)
102 // Look up the active invites targeting a user in a room and return the
103 // numeric state key IDs for the user IDs who sent them along with the event IDs for the invites.
104 // Returns an error if there was a problem talking to the database.

Callers 3

PerformInboundPeekMethod · 0.65
getMissingEventsMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected