From 2ed61fd7632aeab8a0f26fe0c5a31f2d76183537 Mon Sep 17 00:00:00 2001 From: ilya-bkv Date: Mon, 12 Dec 2022 11:22:10 +0300 Subject: [PATCH] Fix group avatar --- src/components/Inbox/DialogCard.tsx | 6 ++++-- src/components/Views/Inbox.tsx | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/Inbox/DialogCard.tsx b/src/components/Inbox/DialogCard.tsx index be6a9b1b..39a17972 100644 --- a/src/components/Inbox/DialogCard.tsx +++ b/src/components/Inbox/DialogCard.tsx @@ -28,6 +28,8 @@ const DialogCard = (props: DialogProps) => { ?.map((companion) => companion.name) .join(', ') ) + + console.log('!!! companions:', companions()) return (
{ >
}> - 2}> - + = 2}> +
diff --git a/src/components/Views/Inbox.tsx b/src/components/Views/Inbox.tsx index add42d82..3180c705 100644 --- a/src/components/Views/Inbox.tsx +++ b/src/components/Views/Inbox.tsx @@ -57,7 +57,6 @@ export const InboxView = () => { changeSearchParam('chat', `${chat.id}`) try { const response = await loadMessages({ chat: chat.id }) - console.log('!!! response:', response) setMessages(response as unknown as MessageType[]) // TODO: one client recreating } catch (error) {