Skip to content

Commit

Permalink
Return created_at and keyId with signed prekeys
Browse files Browse the repository at this point in the history
Use `.get()` rather than `attributes.property` access because created_at
may not be present for old keys

// FREEBIE
  • Loading branch information
liliakai committed Feb 15, 2017
1 parent 829d147 commit 5453636
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/signal_protocol_store.js
Expand Up @@ -148,8 +148,10 @@
return new Promise(function(resolve) {
prekey.fetch().then(function() {
resolve({
pubKey: prekey.attributes.publicKey,
privKey: prekey.attributes.privateKey
pubKey : prekey.get('publicKey'),
privKey : prekey.get('privateKey'),
created_at : prekey.get('created_at'),
keyId : prekey.get('id')
});
}).fail(resolve);
});
Expand Down

0 comments on commit 5453636

Please sign in to comment.