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

Method StreamEventsToEvents

syncapi/storage/interface.go:126–126  ·  view source on GitHub ↗

StreamEventsToEvents converts streamEvent to Event. If device is non-nil and matches the streamevent.transactionID device then the transaction ID gets added to the unsigned section of the output event.

(device *userapi.Device, in []types.StreamEvent)

Source from the content-addressed store, hash-verified

124 // matches the streamevent.transactionID device then the transaction ID gets
125 // added to the unsigned section of the output event.
126 StreamEventsToEvents(device *userapi.Device, in []types.StreamEvent) []*gomatrixserverlib.HeaderedEvent
127 // SendToDeviceUpdatesForSync returns a list of send-to-device updates. It returns the
128 // relevant events within the given ranges for the supplied user ID and device ID.
129 SendToDeviceUpdatesForSync(ctx context.Context, userID, deviceID string, from, to types.StreamPosition) (pos types.StreamPosition, events []types.SendToDeviceEvent, err error)

Calls

no outgoing calls

Tested by 1