js: wrong object assumed in recent commit
-- * src/Keyring.js I wrongly assumed an object to be a GPGME_Key, it was the raw answer from nativeMessaging instead. Now it returns a GPGME_Key again.
This commit is contained in:
parent
715cdc0d7d
commit
43cff51364
@ -200,8 +200,11 @@ export class GPGME_Keyring {
|
|||||||
reject(gpgme_error('KEY_NO_DEFAULT'));
|
reject(gpgme_error('KEY_NO_DEFAULT'));
|
||||||
} else {
|
} else {
|
||||||
for (let i=0; i< result.keys.length; i++ ) {
|
for (let i=0; i< result.keys.length; i++ ) {
|
||||||
if (result.keys[i].get('invalid') === false) {
|
if (result.keys[i].invalid === false) {
|
||||||
resolve(result.keys[i]);
|
let k = createKey(
|
||||||
|
result.keys[i].fingerprint);
|
||||||
|
k.setKeyData(result.keys[i]);
|
||||||
|
resolve(k);
|
||||||
break;
|
break;
|
||||||
} else if (i === result.keys.length - 1){
|
} else if (i === result.keys.length - 1){
|
||||||
reject(gpgme_error('KEY_NO_DEFAULT'));
|
reject(gpgme_error('KEY_NO_DEFAULT'));
|
||||||
|
Loading…
Reference in New Issue
Block a user