parent
16dc7abe69
commit
596188a630
2 changed files with 8 additions and 4 deletions
|
@ -37873,8 +37873,10 @@ axolotlInternal.RecipientRecord = function() {
|
|||
},
|
||||
handlePreKeyWhisperMessage: function(from, blob) {
|
||||
blob.mark();
|
||||
if (blob.readUint8() != ((3 << 4) | 3)) {
|
||||
throw new Error("Bad version byte");
|
||||
var version = blob.readUint8();
|
||||
if ((version & 0xF) > 3 || (version >> 4) < 3) {
|
||||
// min version > 3 or max version < 3
|
||||
throw new Error("Incompatible version byte");
|
||||
}
|
||||
return axolotlInstance.handlePreKeyWhisperMessage(from, blob).catch(function(e) {
|
||||
if (e.message === 'Unknown identity key') {
|
||||
|
|
|
@ -37,8 +37,10 @@
|
|||
},
|
||||
handlePreKeyWhisperMessage: function(from, blob) {
|
||||
blob.mark();
|
||||
if (blob.readUint8() != ((3 << 4) | 3)) {
|
||||
throw new Error("Bad version byte");
|
||||
var version = blob.readUint8();
|
||||
if ((version & 0xF) > 3 || (version >> 4) < 3) {
|
||||
// min version > 3 or max version < 3
|
||||
throw new Error("Incompatible version byte");
|
||||
}
|
||||
return axolotlInstance.handlePreKeyWhisperMessage(from, blob).catch(function(e) {
|
||||
if (e.message === 'Unknown identity key') {
|
||||
|
|
Loading…
Reference in a new issue