Skip to content

Commit

Permalink
Render proper contact in Delivery Issue notifications
Browse files Browse the repository at this point in the history
Co-authored-by: Scott Nonnenberg <scott@signal.org>
  • Loading branch information
automated-signal and scottnonnenberg-signal committed Jun 3, 2021
1 parent 0955924 commit 8b6718f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ts/models/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8b6718f

Please sign in to comment.