diff --git a/js/signal_protocol_store.js b/js/signal_protocol_store.js index 5042621a..2bf658c5 100644 --- a/js/signal_protocol_store.js +++ b/js/signal_protocol_store.js @@ -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); });