Tweak key conflict error messages
Be generic, because sometimes it's not TextSecure, but Signal.
This commit is contained in:
@@ -51,7 +51,7 @@
|
|||||||
|
|
||||||
});
|
});
|
||||||
this.name = 'IncomingIdentityKeyError';
|
this.name = 'IncomingIdentityKeyError';
|
||||||
this.message = "The identity of the sender has changed. This may be malicious, or the sender may have simply reinstalled TextSecure.";
|
this.message = "The identity of the sender has changed. This may be malicious, or the sender may have simply reinstalled.";
|
||||||
this.number = number.split('.')[0];
|
this.number = number.split('.')[0];
|
||||||
}
|
}
|
||||||
IncomingIdentityKeyError.prototype = new ReplayableError();
|
IncomingIdentityKeyError.prototype = new ReplayableError();
|
||||||
@@ -63,7 +63,7 @@
|
|||||||
args : [number, message, timestamp]
|
args : [number, message, timestamp]
|
||||||
});
|
});
|
||||||
this.name = 'OutgoingIdentityKeyError';
|
this.name = 'OutgoingIdentityKeyError';
|
||||||
this.message = "The identity of the destination has changed. This may be malicious, or the destination may have simply reinstalled TextSecure.";
|
this.message = "The identity of the destination has changed. This may be malicious, or the destination may have simply reinstalled.";
|
||||||
this.number = number.split('.')[0];
|
this.number = number.split('.')[0];
|
||||||
}
|
}
|
||||||
OutgoingIdentityKeyError.prototype = new ReplayableError();
|
OutgoingIdentityKeyError.prototype = new ReplayableError();
|
||||||
|
@@ -50,7 +50,7 @@
|
|||||||
|
|
||||||
});
|
});
|
||||||
this.name = 'IncomingIdentityKeyError';
|
this.name = 'IncomingIdentityKeyError';
|
||||||
this.message = "The identity of the sender has changed. This may be malicious, or the sender may have simply reinstalled TextSecure.";
|
this.message = "The identity of the sender has changed. This may be malicious, or the sender may have simply reinstalled.";
|
||||||
this.number = number.split('.')[0];
|
this.number = number.split('.')[0];
|
||||||
}
|
}
|
||||||
IncomingIdentityKeyError.prototype = new ReplayableError();
|
IncomingIdentityKeyError.prototype = new ReplayableError();
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
args : [number, message, timestamp]
|
args : [number, message, timestamp]
|
||||||
});
|
});
|
||||||
this.name = 'OutgoingIdentityKeyError';
|
this.name = 'OutgoingIdentityKeyError';
|
||||||
this.message = "The identity of the destination has changed. This may be malicious, or the destination may have simply reinstalled TextSecure.";
|
this.message = "The identity of the destination has changed. This may be malicious, or the destination may have simply reinstalled.";
|
||||||
this.number = number.split('.')[0];
|
this.number = number.split('.')[0];
|
||||||
}
|
}
|
||||||
OutgoingIdentityKeyError.prototype = new ReplayableError();
|
OutgoingIdentityKeyError.prototype = new ReplayableError();
|
||||||
|
Reference in New Issue
Block a user