Rename ContactType to EmbeddedContactType

This commit is contained in:
Fedor Indutny 2021-08-19 18:56:39 -07:00 committed by GitHub
parent 017a0fa807
commit fe040a2873
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 46 additions and 42 deletions

View file

@ -129,7 +129,7 @@ const {
Message: TypedMessage,
Attachment,
MIME,
Contact,
EmbeddedContact,
Errors,
} = window.Signal.Types;
const {
@ -678,7 +678,8 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
const contacts = this.get('contact');
if (contacts && contacts.length) {
return {
text: Contact.getName(contacts[0]) || window.i18n('unknownContact'),
text:
EmbeddedContact.getName(contacts[0]) || window.i18n('unknownContact'),
emoji: '👤',
};
}