From 8583be3775cfd60de57fd242113bc6526a325402 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Thu, 3 Jun 2021 15:25:41 -0700 Subject: [PATCH] Render proper contact in Delivery Issue notifications --- ts/models/messages.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ts/models/messages.ts b/ts/models/messages.ts index ded2ae4650..37600f02bf 100644 --- a/ts/models/messages.ts +++ b/ts/models/messages.ts @@ -905,7 +905,13 @@ export class MessageModel extends window.Backbone.Model { } 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,