diff options
author | Maximilian Krambach <[email protected]> | 2018-07-17 09:07:49 +0000 |
---|---|---|
committer | Maximilian Krambach <[email protected]> | 2018-07-17 09:07:49 +0000 |
commit | ce0379d999039131c86dc0bb83e9b8edfee1c7d4 (patch) | |
tree | ac580fcb4a15f66e0f86ef9c2b7fa8e172bac6b0 | |
parent | js: allow optional Key retrieve pattern to be null (diff) | |
download | gpgme-ce0379d999039131c86dc0bb83e9b8edfee1c7d4.tar.gz gpgme-ce0379d999039131c86dc0bb83e9b8edfee1c7d4.zip |
js: fix getkeys with locate option
--
* src/Keyring.js:
As locate will not work with the "secret" option, the first message
cannot be reused, thus a new one must be created here
Diffstat (limited to '')
-rw-r--r-- | lang/js/src/Keyring.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lang/js/src/Keyring.js b/lang/js/src/Keyring.js index cefc8123..f2a71389 100644 --- a/lang/js/src/Keyring.js +++ b/lang/js/src/Keyring.js @@ -68,8 +68,10 @@ export class GPGME_Keyring { let secondrequest; if (prepare_sync === true) { secondrequest = function() { - msg.setParameter('secret', true); - return msg.post(); + let msg2 = createMessage('keylist'); + msg2.setParameter('keys', pattern); + msg2.setParameter('secret', true); + return msg2.post(); }; } else { secondrequest = function() { |