fix metadata private key fetching

This commit is contained in:
Samuel Lorch 2025-05-13 16:53:37 +02:00
parent 7c15f80c7e
commit 0c5a7aafc7

View file

@ -32,7 +32,9 @@ func GetMetadataKey(ctx context.Context, c *api.Client, personal bool) (string,
return me.GPGKey.ID, api.MetadataKeyTypeUserKey, key, nil
}
keys, err := c.GetMetadataKeys(ctx, nil)
keys, err := c.GetMetadataKeys(ctx, &api.GetMetadataKeysOptions{
ContainMetadataPrivateKeys: true,
})
if err != nil {
return "", "", nil, fmt.Errorf("Get Metadata Key: %w", err)
}