Update libsignal-protocol / Update prekey format
Integrates change in prekey object formatting, which now matches more conveniently with the representation rendered by the server. // FREEBIE
This commit is contained in:
parent
6589ec544a
commit
9f871db48a
6 changed files with 49 additions and 105 deletions
|
@ -82,6 +82,13 @@
|
|||
throw e;
|
||||
});
|
||||
});
|
||||
},
|
||||
processPreKey: function(preKeyBundle) {
|
||||
return queueJobForNumber(preKeyBundle.encodedNumber, function() {
|
||||
var address = libsignal.SignalProtocolAddress.fromString(preKeyBundle.encodedNumber);
|
||||
var builder = new libsignal.SessionBuilder(textsecure.storage.protocol, address);
|
||||
return builder.processPreKey(preKeyBundle);
|
||||
});
|
||||
}
|
||||
};
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue