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
This commit is contained in:
parent
5213a599fe
commit
ce0379d999
@ -68,8 +68,10 @@ export class GPGME_Keyring {
|
|||||||
let secondrequest;
|
let secondrequest;
|
||||||
if (prepare_sync === true) {
|
if (prepare_sync === true) {
|
||||||
secondrequest = function() {
|
secondrequest = function() {
|
||||||
msg.setParameter('secret', true);
|
let msg2 = createMessage('keylist');
|
||||||
return msg.post();
|
msg2.setParameter('keys', pattern);
|
||||||
|
msg2.setParameter('secret', true);
|
||||||
|
return msg2.post();
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
secondrequest = function() {
|
secondrequest = function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user