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;
|
||||
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() {
|
||||
|
Loading…
Reference in New Issue
Block a user