From 7799bef86cee09089e45970fd9e80e1674febc92 Mon Sep 17 00:00:00 2001 From: lilia Date: Thu, 7 May 2015 17:43:30 -0700 Subject: [PATCH] Tweak key conflict error messages Be generic, because sometimes it's not TextSecure, but Signal. --- js/libtextsecure.js | 4 ++-- libtextsecure/errors.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/libtextsecure.js b/js/libtextsecure.js index 86dbb12826..663f9ddedf 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -51,7 +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 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]; } IncomingIdentityKeyError.prototype = new ReplayableError(); @@ -63,7 +63,7 @@ args : [number, message, timestamp] }); 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]; } OutgoingIdentityKeyError.prototype = new ReplayableError(); diff --git a/libtextsecure/errors.js b/libtextsecure/errors.js index eda72ec474..8091d4a631 100644 --- a/libtextsecure/errors.js +++ b/libtextsecure/errors.js @@ -50,7 +50,7 @@ }); 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]; } IncomingIdentityKeyError.prototype = new ReplayableError(); @@ -62,7 +62,7 @@ args : [number, message, timestamp] }); 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]; } OutgoingIdentityKeyError.prototype = new ReplayableError();