Update libaxolotl, handle untrusted identitykey

Previously we had no access to the new untrusted identity
for verification purposes.

// FREEBIE
This commit is contained in:
lilia 2015-07-20 14:13:18 -07:00
parent af48ca9e4b
commit cc303e0802
4 changed files with 16 additions and 10 deletions

View file

@ -43,7 +43,7 @@
return registeredFunctions[this.functionCode].apply(window, this.args);
};
function IncomingIdentityKeyError(number, message) {
function IncomingIdentityKeyError(number, message, key) {
ReplayableError.call(this, {
functionCode : Type.INIT_SESSION,
args : [number, message]
@ -51,6 +51,7 @@
});
this.name = 'IncomingIdentityKeyError';
this.message = "The identity of the sender has changed. This may be malicious, or the sender may have simply reinstalled.";
this.identityKey = key;
this.number = number.split('.')[0];
}
IncomingIdentityKeyError.prototype = new ReplayableError();