[git] GPGME - branch, javascript-binding, updated. gpgme-1.11.1-90-g43cff51

[email protected] (by Maximilian Krambach)
Newsgroups gmane.comp.encryption.gpg.cvs
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GnuPG Made Easy".

The branch, javascript-binding has been updated
       via  43cff5136459c5bca4dca66772eb815f5761c6cd (commit)
      from  715cdc0d7d5bc8d39ff3cc49774c59e5db01c1b6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 43cff5136459c5bca4dca66772eb815f5761c6cd
Author: Maximilian Krambach <[email protected]>
Date:   Thu Aug 16 12:13:10 2018 +0200

    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.

diff --git a/lang/js/src/Keyring.js b/lang/js/src/Keyring.js
index 9fdd53b..93923c6 100644
--- a/lang/js/src/Keyring.js
+++ b/lang/js/src/Keyring.js
@@ -200,8 +200,11 @@ export class GPGME_Keyring {
                                 reject(gpgme_error('KEY_NO_DEFAULT'));
                             } else {
                                 for (let i=0; i< result.keys.length; i++ ) {
-                                    if (result.keys[i].get('invalid') === false) {
-                                        resolve(result.keys[i]);
+                                    if (result.keys[i].invalid === false) {
+                                        let k = createKey(
+                                            result.keys[i].fingerprint);
+                                        k.setKeyData(result.keys[i]);
+                                        resolve(k);
                                         break;
                                     } else if (i === result.keys.length - 1){
                                         reject(gpgme_error('KEY_NO_DEFAULT'));

-----------------------------------------------------------------------

Summary of changes:
 lang/js/src/Keyring.js | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GnuPG Made Easy
http://git.gnupg.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.