Pass ciphertext as ArrayBuffer instead of string

// FREEBIE
pull/749/head
lilia 9 years ago
parent 6053fe67ba
commit c02054d5da

@ -35299,7 +35299,7 @@ axolotlInternal.RecipientRecord = function() {
window.textsecure.protocol_wrapper = {
decryptWhisperMessage: function(fromAddress, blob) {
return queueJobForNumber(fromAddress, function() {
return axolotlInstance.decryptWhisperMessage(fromAddress, getString(blob));
return axolotlInstance.decryptWhisperMessage(fromAddress, blob.toArrayBuffer());
});
},
closeOpenSessionForDevice: function(encodedNumber) {

@ -30,7 +30,7 @@
window.textsecure.protocol_wrapper = {
decryptWhisperMessage: function(fromAddress, blob) {
return queueJobForNumber(fromAddress, function() {
return axolotlInstance.decryptWhisperMessage(fromAddress, getString(blob));
return axolotlInstance.decryptWhisperMessage(fromAddress, blob.toArrayBuffer());
});
},
closeOpenSessionForDevice: function(encodedNumber) {

Loading…
Cancel
Save