[git] GPGME - branch, javascript-binding, updated. gpgme-1.11.1-97-g8e87790

[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  8e87790db3499b1625fd65f3272192df47b5dfd0 (commit)
      from  3fb094a9b8c320fc10e537a9bb5fab34807f4e52 (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 8e87790db3499b1625fd65f3272192df47b5dfd0
Author: Maximilian Krambach <[email protected]>
Date:   Fri Aug 17 17:20:35 2018 +0200

    js: don't expire new keys if no date is set
    
    --
    
    * src/Keyring.js A new Key without expiration is documented as
      'never expire' here, and should behave accordingly. This requires
      sending '0' here.

diff --git a/lang/js/src/Keyring.js b/lang/js/src/Keyring.js
index 766bab1..d18fb64 100644
--- a/lang/js/src/Keyring.js
+++ b/lang/js/src/Keyring.js
@@ -390,6 +390,8 @@ export class GPGME_Keyring {
                 if (expires){
                     msg.setParameter('expires',
                         Math.floor(expires.valueOf()/1000));
+                } else {
+                    msg.setParameter('expires', 0);
                 }
                 msg.post().then(function(response){
                     me.getKeys(response.fingerprint, true).then(

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

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


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.