// FREEBIE
@ -56,7 +56,7 @@
return messages.join(' ');
}
if (this.isEndSession()) {
return 'Secure session ended.';
return i18n('sessionEnded');
if (this.isIncoming() && this.hasKeyConflicts()) {
return 'Received message with unknown identity key.';
@ -174,7 +174,7 @@
assert.equal(message.getDescription(), 'Updated the group. Title is now \'blerg\'. Bob joined the group.', 'Notes when there are multiple changes to group_updates properties.');
message = messages.add({flags: true});
assert.equal(message.getDescription(), 'Secure session ended.');
assert.equal(message.getDescription(), i18n('sessionEnded'));
message = messages.add({type: 'incoming', errors: [{name: 'OutgoingIdentityKeyError'}]});
assert.equal(message.getDescription(), 'Received message with unknown identity key.');