Pass ciphertext as ArrayBuffer instead of string
// FREEBIE
This commit is contained in:
parent
6053fe67ba
commit
c02054d5da
2 changed files with 2 additions and 2 deletions
|
@ -35299,7 +35299,7 @@ axolotlInternal.RecipientRecord = function() {
|
||||||
window.textsecure.protocol_wrapper = {
|
window.textsecure.protocol_wrapper = {
|
||||||
decryptWhisperMessage: function(fromAddress, blob) {
|
decryptWhisperMessage: function(fromAddress, blob) {
|
||||||
return queueJobForNumber(fromAddress, function() {
|
return queueJobForNumber(fromAddress, function() {
|
||||||
return axolotlInstance.decryptWhisperMessage(fromAddress, getString(blob));
|
return axolotlInstance.decryptWhisperMessage(fromAddress, blob.toArrayBuffer());
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
closeOpenSessionForDevice: function(encodedNumber) {
|
closeOpenSessionForDevice: function(encodedNumber) {
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
window.textsecure.protocol_wrapper = {
|
window.textsecure.protocol_wrapper = {
|
||||||
decryptWhisperMessage: function(fromAddress, blob) {
|
decryptWhisperMessage: function(fromAddress, blob) {
|
||||||
return queueJobForNumber(fromAddress, function() {
|
return queueJobForNumber(fromAddress, function() {
|
||||||
return axolotlInstance.decryptWhisperMessage(fromAddress, getString(blob));
|
return axolotlInstance.decryptWhisperMessage(fromAddress, blob.toArrayBuffer());
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
closeOpenSessionForDevice: function(encodedNumber) {
|
closeOpenSessionForDevice: function(encodedNumber) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue