Add some types to window and window.Signal

This commit is contained in:
Evan Hahn 2021-01-19 19:19:00 -06:00 committed by Scott Nonnenberg
parent bba50c8427
commit 9f6e9ba47d
2 changed files with 44 additions and 43 deletions

View file

@ -1424,7 +1424,10 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
}
const contacts = this.get('contact');
if (contacts && contacts.length) {
return { text: Contact.getName(contacts[0]), emoji: '👤' };
return {
text: Contact.getName(contacts[0]) || window.i18n('unknownContact'),
emoji: '👤',
};
}
if (body) {