Render proper contact in Delivery Issue notifications

This commit is contained in:
Scott Nonnenberg 2021-06-03 15:25:41 -07:00 committed by GitHub
parent 016ef8af79
commit 8583be3775
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -905,7 +905,13 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
}
getPropsForDeliveryIssue(): DeliveryIssuePropsType {
const sender = this.getContact()?.format();
const sourceUuid = this.get('sourceUuid');
const sender = sourceUuid
? window.ConversationController.getOrCreate(
sourceUuid,
'private'
).format()
: PLACEHOLDER_CONTACT;
return {
sender,