From 4a1d0ebdb939bf5807115ac50b97221b0f4a0c00 Mon Sep 17 00:00:00 2001 From: lilia Date: Fri, 2 Oct 2015 00:03:22 -0700 Subject: [PATCH] Pass bytebuffer to axolotlInstance // FREEBIE --- js/libtextsecure.js | 2 +- libtextsecure/axolotl_wrapper.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/libtextsecure.js b/js/libtextsecure.js index cf7b02eeb..055bc4f26 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -37828,7 +37828,7 @@ axolotlInternal.RecipientRecord = function() { if (blob.readUint8() != ((3 << 4) | 3)) { throw new Error("Bad version byte"); } - return axolotlInstance.handlePreKeyWhisperMessage(from, blob.toArrayBuffer()).catch(function(e) { + return axolotlInstance.handlePreKeyWhisperMessage(from, blob).catch(function(e) { if (e.message === 'Unknown identity key') { blob.reset(); // restore the version byte. diff --git a/libtextsecure/axolotl_wrapper.js b/libtextsecure/axolotl_wrapper.js index d8f9ff3f2..a35315247 100644 --- a/libtextsecure/axolotl_wrapper.js +++ b/libtextsecure/axolotl_wrapper.js @@ -40,7 +40,7 @@ if (blob.readUint8() != ((3 << 4) | 3)) { throw new Error("Bad version byte"); } - return axolotlInstance.handlePreKeyWhisperMessage(from, blob.toArrayBuffer()).catch(function(e) { + return axolotlInstance.handlePreKeyWhisperMessage(from, blob).catch(function(e) { if (e.message === 'Unknown identity key') { blob.reset(); // restore the version byte.