From f62dd4bb27c36e44acf93af1daf24eefda3029c2 Mon Sep 17 00:00:00 2001 From: Maximilian Krambach Date: Thu, 23 Aug 2018 17:55:35 +0200 Subject: [PATCH] js: fix syntax inside Keyring methods -- * recent changes in parameter calling led to a forgotten internal call in getDefaultKey using old syntax (and failing in case a default key is configured) --- lang/js/src/Keyring.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lang/js/src/Keyring.js b/lang/js/src/Keyring.js index 59027088..2b57e63f 100644 --- a/lang/js/src/Keyring.js +++ b/lang/js/src/Keyring.js @@ -185,7 +185,8 @@ export class GPGME_Keyring { && resp.option.value.length === 1 && resp.option.value[0].hasOwnProperty('string') && typeof (resp.option.value[0].string) === 'string'){ - me.getKeys(resp.option.value[0].string, true).then( + me.getKeys({ pattern: resp.option.value[0].string, + prepare_sync: true }).then( function (keys){ if (keys.length === 1){ resolve(keys[0]);