Render proper contact in Delivery Issue notifications

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
automated-signal
2021-06-03 15:34:13 -07:00
committed by GitHub
parent 0955924fba
commit 8b6718f782

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,