Normalize UUID for formatting contact

This commit is contained in:
Fedor Indutny 2021-06-24 11:42:19 -07:00 committed by GitHub
parent af85b61e9b
commit 3171da03e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -387,7 +387,15 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
return PLACEHOLDER_CONTACT;
}
const contactModel = this.findContact(identifier);
const identifierHolder = { identifier };
window.normalizeUuids(
identifierHolder,
['identifier'],
'findAndFormatContact'
);
const contactModel = this.findContact(identifierHolder.identifier);
if (contactModel) {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
return contactModel.format()!;