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:
@@ -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);
|
||||
});
|
||||
}
|
||||
};
|
||||
})();
|
||||
|
Reference in New Issue
Block a user