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:
Maximilian Krambach 2018-08-23 17:55:35 +02:00
parent 352c53040d
commit f62dd4bb27

View File

@ -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]);