From 57160cb45ce3da45c85473576a0bc90a6b193e01 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Wed, 9 Sep 2020 10:38:24 +1000 Subject: [PATCH] fix custom avatar show on dialogs and list --- ts/components/conversation/InviteContactsDialog.tsx | 1 + ts/components/conversation/UpdateGroupMembersDialog.tsx | 1 + ts/components/session/SessionClosableOverlay.tsx | 1 + 3 files changed, 3 insertions(+) diff --git a/ts/components/conversation/InviteContactsDialog.tsx b/ts/components/conversation/InviteContactsDialog.tsx index 07194bef1..871c6f0e8 100644 --- a/ts/components/conversation/InviteContactsDialog.tsx +++ b/ts/components/conversation/InviteContactsDialog.tsx @@ -42,6 +42,7 @@ export class InviteContactsDialog extends React.Component { id: d.id, authorPhoneNumber: d.id, authorProfileName: name, + authorAvatarPath: d?.cachedProps?.avatarPath, selected: false, authorName: name, authorColor: d.getColor(), diff --git a/ts/components/conversation/UpdateGroupMembersDialog.tsx b/ts/components/conversation/UpdateGroupMembersDialog.tsx index 09b0a6c8f..a8f60afd9 100644 --- a/ts/components/conversation/UpdateGroupMembersDialog.tsx +++ b/ts/components/conversation/UpdateGroupMembersDialog.tsx @@ -49,6 +49,7 @@ export class UpdateGroupMembersDialog extends React.Component { id: d.id, authorPhoneNumber: d.id, authorProfileName: name, + authorAvatarPath: d?.cachedProps?.avatarPath, selected: false, authorName: name, // different from ProfileName? authorColor: d.getColor(), diff --git a/ts/components/session/SessionClosableOverlay.tsx b/ts/components/session/SessionClosableOverlay.tsx index 22e6063d5..3977aa86f 100644 --- a/ts/components/session/SessionClosableOverlay.tsx +++ b/ts/components/session/SessionClosableOverlay.tsx @@ -92,6 +92,7 @@ export class SessionClosableOverlay extends React.Component { id: d.id, authorPhoneNumber: d.id, authorProfileName: title, + authorAvatarPath: d.avatarPath, selected: false, authorName: name, authorColor: d.color,