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

Method PrevEventIDs

roomserver/api/perform.go:152–159  ·  view source on GitHub ↗

PrevEventIDs returns the prev_event IDs of all backwards extremities, de-duplicated in a lexicographically sorted order.

()

Source from the content-addressed store, hash-verified

150
151// PrevEventIDs returns the prev_event IDs of all backwards extremities, de-duplicated in a lexicographically sorted order.
152func (r *PerformBackfillRequest) PrevEventIDs() []string {
153 var prevEventIDs []string
154 for _, pes := range r.BackwardsExtremities {
155 prevEventIDs = append(prevEventIDs, pes...)
156 }
157 prevEventIDs = util.UniqueStrings(prevEventIDs)
158 return prevEventIDs
159}
160
161// PerformBackfillResponse is a response to PerformBackfill.
162type PerformBackfillResponse struct {

Callers 15

MissingAuthPrevEventsMethod · 0.80
ScanEventTreeFunction · 0.80
PerformBackfillMethod · 0.80
backfillViaFederationMethod · 0.80
StateIDsBeforeEventMethod · 0.80
getMissingEventsMethod · 0.80
isPrevStateKnownMethod · 0.80
calculateLatestMethod · 0.80
processStateBeforeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected