Return created_at and keyId with signed prekeys
Use `.get()` rather than `attributes.property` access because created_at may not be present for old keys // FREEBIE
This commit is contained in:
parent
829d147d19
commit
54536360ff
1 changed files with 4 additions and 2 deletions
|
@ -148,8 +148,10 @@
|
||||||
return new Promise(function(resolve) {
|
return new Promise(function(resolve) {
|
||||||
prekey.fetch().then(function() {
|
prekey.fetch().then(function() {
|
||||||
resolve({
|
resolve({
|
||||||
pubKey: prekey.attributes.publicKey,
|
pubKey : prekey.get('publicKey'),
|
||||||
privKey: prekey.attributes.privateKey
|
privKey : prekey.get('privateKey'),
|
||||||
|
created_at : prekey.get('created_at'),
|
||||||
|
keyId : prekey.get('id')
|
||||||
});
|
});
|
||||||
}).fail(resolve);
|
}).fail(resolve);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue