diff --git a/js/models/messages.js b/js/models/messages.js index f97d6f47..3056b103 100644 --- a/js/models/messages.js +++ b/js/models/messages.js @@ -59,7 +59,7 @@ return i18n('sessionEnded'); } if (this.isIncoming() && this.hasKeyConflicts()) { - return 'Received message with unknown identity key.'; + return i18n('incomingKeyConflict'); } if (this.isIncoming() && this.hasErrors()) { return 'Error handling incoming message.'; diff --git a/test/models/messages_test.js b/test/models/messages_test.js index 4bf1cbb3..a2f4bc49 100644 --- a/test/models/messages_test.js +++ b/test/models/messages_test.js @@ -177,7 +177,7 @@ assert.equal(message.getDescription(), i18n('sessionEnded')); message = messages.add({type: 'incoming', errors: [{name: 'OutgoingIdentityKeyError'}]}); - assert.equal(message.getDescription(), 'Received message with unknown identity key.'); + assert.equal(message.getDescription(), i18n('incomingKeyConflict')); });