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

Method PerformDeleteKeys

keyserver/internal/internal.go:175–181  ·  view source on GitHub ↗
(ctx context.Context, req *api.PerformDeleteKeysRequest, res *api.PerformDeleteKeysResponse)

Source from the content-addressed store, hash-verified

173}
174
175func (a *KeyInternalAPI) PerformDeleteKeys(ctx context.Context, req *api.PerformDeleteKeysRequest, res *api.PerformDeleteKeysResponse) {
176 if err := a.DB.DeleteDeviceKeys(ctx, req.UserID, req.KeyIDs); err != nil {
177 res.Error = &api.KeyError{
178 Err: fmt.Sprintf("Failed to delete device keys: %s", err),
179 }
180 }
181}
182
183func (a *KeyInternalAPI) QueryOneTimeKeys(ctx context.Context, req *api.QueryOneTimeKeysRequest, res *api.QueryOneTimeKeysResponse) {
184 count, err := a.DB.OneTimeKeysCount(ctx, req.UserID, req.DeviceID)

Callers

nothing calls this directly

Calls 1

DeleteDeviceKeysMethod · 0.65

Tested by

no test coverage detected