i18n 'Received message with unknown identity key'

// FREEBIE
This commit is contained in:
2-4601 2016-04-23 21:05:43 +03:00 committed by lilia
parent 52992a8f12
commit 60fe1e2cea
2 changed files with 2 additions and 2 deletions

View file

@ -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.';

View file

@ -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'));
});