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:
Maximilian Krambach 2018-07-17 11:07:49 +02:00
parent 5213a599fe
commit ce0379d999

View File

@ -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() {