diff --git a/js/libtextsecure.js b/js/libtextsecure.js index 0bca9f1c3cca..150707e46b13 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -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) { diff --git a/libtextsecure/axolotl_wrapper.js b/libtextsecure/axolotl_wrapper.js index 9ac13e179a8a..394740f8599c 100644 --- a/libtextsecure/axolotl_wrapper.js +++ b/libtextsecure/axolotl_wrapper.js @@ -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) {