Pass ciphertext as ArrayBuffer instead of string

// FREEBIE
This commit is contained in:
lilia 2016-03-12 19:04:09 -08:00
parent 6053fe67ba
commit c02054d5da
2 changed files with 2 additions and 2 deletions

View file

@ -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) {

View file

@ -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) {