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)
This commit is contained in:
parent
352c53040d
commit
f62dd4bb27
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user