Add some types to window and window.Signal
This commit is contained in:
parent
bba50c8427
commit
9f6e9ba47d
2 changed files with 44 additions and 43 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue