mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Pass bytebuffer to axolotlInstance
// FREEBIE
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user