Commit c4ac73cc authored by JC Brand's avatar JC Brand

prekey id must be an int.

parent ca9229a9
...@@ -475,8 +475,7 @@ ...@@ -475,8 +475,7 @@
'identity_keypair': identity_keypair, 'identity_keypair': identity_keypair,
'prekeys': {} 'prekeys': {}
}; };
const signed_prekey_id = '0'; libsignal.KeyHelper.generateSignedPreKey(identity_keypair, 0)
libsignal.KeyHelper.generateSignedPreKey(identity_keypair, signed_prekey_id)
.then((signed_prekey) => { .then((signed_prekey) => {
data['signed_prekey'] = signed_prekey; data['signed_prekey'] = signed_prekey;
const key_promises = _.map(_.range(0, _converse.NUM_PREKEYS), (id) => libsignal.KeyHelper.generatePreKey(id)); const key_promises = _.map(_.range(0, _converse.NUM_PREKEYS), (id) => libsignal.KeyHelper.generatePreKey(id));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment