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

Method CleanSendToDeviceUpdates

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

CleanSendToDeviceUpdates removes all send-to-device messages BEFORE the specified from position, preventing the send-to-device table from growing indefinitely.

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

Source from the content-addressed store, hash-verified

132 // CleanSendToDeviceUpdates removes all send-to-device messages BEFORE the specified
133 // from position, preventing the send-to-device table from growing indefinitely.
134 CleanSendToDeviceUpdates(ctx context.Context, userID, deviceID string, before types.StreamPosition) (err error)
135 // GetFilter looks up the filter associated with a given local user and filter ID
136 // and populates the target filter. Otherwise returns an error if no such filter exists
137 // or if there was an error talking to the database.

Callers 2

OnIncomingSyncRequestMethod · 0.65

Calls

no outgoing calls

Tested by 1