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

Method SendToDeviceUpdatesForSync

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

SendToDeviceUpdatesForSync returns a list of send-to-device updates. It returns the relevant events within the given ranges for the supplied user ID and device ID.

(ctx context.Context, userID, deviceID string, from, to types.StreamPosition)

Source from the content-addressed store, hash-verified

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)
130 // StoreNewSendForDeviceMessage stores a new send-to-device event for a user's device.
131 StoreNewSendForDeviceMessage(ctx context.Context, userID, deviceID string, event gomatrixserverlib.SendToDeviceEvent) (types.StreamPosition, error)
132 // CleanSendToDeviceUpdates removes all send-to-device messages BEFORE the specified

Callers 2

IncrementalSyncMethod · 0.65

Calls

no outgoing calls

Tested by 1