Pass bytebuffer to axolotlInstance
// FREEBIE
This commit is contained in:
parent
46c9a7fafb
commit
4a1d0ebdb9
2 changed files with 2 additions and 2 deletions
|
@ -37828,7 +37828,7 @@ axolotlInternal.RecipientRecord = function() {
|
||||||
if (blob.readUint8() != ((3 << 4) | 3)) {
|
if (blob.readUint8() != ((3 << 4) | 3)) {
|
||||||
throw new Error("Bad version byte");
|
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') {
|
if (e.message === 'Unknown identity key') {
|
||||||
blob.reset(); // restore the version byte.
|
blob.reset(); // restore the version byte.
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
if (blob.readUint8() != ((3 << 4) | 3)) {
|
if (blob.readUint8() != ((3 << 4) | 3)) {
|
||||||
throw new Error("Bad version byte");
|
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') {
|
if (e.message === 'Unknown identity key') {
|
||||||
blob.reset(); // restore the version byte.
|
blob.reset(); // restore the version byte.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue