(ctx context.Context, req *api.PerformUploadKeysRequest, res *api.PerformUploadKeysResponse)
| 60 | } |
| 61 | |
| 62 | func (a *KeyInternalAPI) PerformUploadKeys(ctx context.Context, req *api.PerformUploadKeysRequest, res *api.PerformUploadKeysResponse) { |
| 63 | res.KeyErrors = make(map[string]map[string]*api.KeyError) |
| 64 | if len(req.DeviceKeys) > 0 { |
| 65 | a.uploadLocalDeviceKeys(ctx, req, res) |
| 66 | } |
| 67 | if len(req.OneTimeKeys) > 0 { |
| 68 | a.uploadOneTimeKeys(ctx, req, res) |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | func (a *KeyInternalAPI) PerformClaimKeys(ctx context.Context, req *api.PerformClaimKeysRequest, res *api.PerformClaimKeysResponse) { |
| 73 | res.OneTimeKeys = make(map[string]map[string]map[string]json.RawMessage) |
nothing calls this directly
no test coverage detected