Render proper contact in Delivery Issue notifications
This commit is contained in:
parent
016ef8af79
commit
8583be3775
1 changed files with 7 additions and 1 deletions
|
@ -905,7 +905,13 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
|
||||||
}
|
}
|
||||||
|
|
||||||
getPropsForDeliveryIssue(): DeliveryIssuePropsType {
|
getPropsForDeliveryIssue(): DeliveryIssuePropsType {
|
||||||
const sender = this.getContact()?.format();
|
const sourceUuid = this.get('sourceUuid');
|
||||||
|
const sender = sourceUuid
|
||||||
|
? window.ConversationController.getOrCreate(
|
||||||
|
sourceUuid,
|
||||||
|
'private'
|
||||||
|
).format()
|
||||||
|
: PLACEHOLDER_CONTACT;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
sender,
|
sender,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue