diff --git a/src/components/Inbox/DialogCard.tsx b/src/components/Inbox/DialogCard.tsx index be88b9b5..f30d0eca 100644 --- a/src/components/Inbox/DialogCard.tsx +++ b/src/components/Inbox/DialogCard.tsx @@ -13,18 +13,16 @@ type DialogProps = { } const DialogCard = (props: DialogProps) => { - const { session } = useSession() - const participants = props.members?.filter((m) => m?.id !== session().user.id) || [] - console.log('!!! participants:', participants) + console.log('!!! participants:', props.members) return ( //DialogCardView - подумать - 0}> + 0}>
- +
-
{participants[0].name}
+
{props.members[0].name}
{t('You can announce your languages in profile')}
diff --git a/src/components/Views/Inbox.tsx b/src/components/Views/Inbox.tsx index 23e40faa..b9481e0d 100644 --- a/src/components/Views/Inbox.tsx +++ b/src/components/Views/Inbox.tsx @@ -1,5 +1,5 @@ import { For, createSignal, Show, onMount, createEffect, createMemo } from 'solid-js' -import type { Author, Chat } from '../../graphql/types.gen' +import type { Author, Chat, ChatMember } from '../../graphql/types.gen' import { AuthorCard } from '../Author/Card' import { Icon } from '../_shared/Icon' import { Loading } from '../Loading' @@ -165,9 +165,7 @@ export const InboxView = () => {
- - {(chat) => } - + {(chat: Chat) => }