- {/*{companions.length > 1 && (*/}
- {/*
*/}
- {/* */}
- {/*
*/}
- {/*)}*/}
+ {companions.length > 1 ?
Group
:
{companions[0].name}
}
Указать предпочтительные языки для результатов поиска можно в разделе
diff --git a/src/components/Views/Inbox.tsx b/src/components/Views/Inbox.tsx
index 92b25463..62ab81dd 100644
--- a/src/components/Views/Inbox.tsx
+++ b/src/components/Views/Inbox.tsx
@@ -112,7 +112,7 @@ export const InboxView = () => {
try {
const response = await loadChats()
setChats(response as unknown as Chat[])
- console.log('!!! response:', response)
+ console.log('!!! chats:', response)
} catch (error) {
console.log(error)
}
@@ -168,7 +168,7 @@ export const InboxView = () => {
- {(chat) => }
+ {(chat) => }
diff --git a/src/graphql/query/chats-load.ts b/src/graphql/query/chats-load.ts
index c5b87093..2e2ac02a 100644
--- a/src/graphql/query/chats-load.ts
+++ b/src/graphql/query/chats-load.ts
@@ -6,8 +6,13 @@ export default gql`
error
chats {
id
+ title
admins
- users
+ members {
+ slug
+ name
+ userpic
+ }
unread
description
updatedAt
diff --git a/src/graphql/types.gen.ts b/src/graphql/types.gen.ts
index 142fb840..39afa866 100644
--- a/src/graphql/types.gen.ts
+++ b/src/graphql/types.gen.ts
@@ -54,17 +54,18 @@ export type AuthorsBy = {
}
export type Chat = {
- admins?: Maybe
>>
+ admins?: Maybe>>
createdAt: Scalars['Int']
- createdBy: User
+ createdBy: Scalars['String']
description?: Maybe
id: Scalars['String']
- messages: Array>
+ members?: Maybe>>
+ messages?: Maybe>>
private?: Maybe
title?: Maybe
unread?: Maybe
updatedAt: Scalars['Int']
- users: Array>
+ users?: Maybe>>
}
export type ChatInput = {
@@ -75,8 +76,6 @@ export type ChatInput = {
export type ChatMember = {
id: Scalars['Int']
- invitedAt?: Maybe
- invitedBy?: Maybe
lastSeen?: Maybe
name: Scalars['String']
slug: Scalars['String']
@@ -136,6 +135,7 @@ export type LoadShoutsOptions = {
offset?: InputMaybe
order_by?: InputMaybe
order_by_desc?: InputMaybe
+ with_author_captions?: InputMaybe
}
export type Message = {
@@ -178,7 +178,6 @@ export type Mutation = {
follow: Result
getSession: AuthResult
inviteAuthor: Result
- inviteChat: Result
markAsRead: Result
rateUser: Result
registerUser: AuthResult
@@ -214,7 +213,7 @@ export type MutationCreateReactionArgs = {
}
export type MutationCreateShoutArgs = {
- inp: ShoutInput
+ input: ShoutInput
}
export type MutationCreateTopicArgs = {
@@ -252,11 +251,6 @@ export type MutationInviteAuthorArgs = {
shout: Scalars['String']
}
-export type MutationInviteChatArgs = {
- chatId: Scalars['String']
- userslug: Scalars['String']
-}
-
export type MutationMarkAsReadArgs = {
chatId: Scalars['String']
ids: Array>
diff --git a/src/styles/Inbox.scss b/src/styles/Inbox.scss
index ea766bbe..1b6f0a0c 100644
--- a/src/styles/Inbox.scss
+++ b/src/styles/Inbox.scss
@@ -17,7 +17,6 @@ main {
flex: 1;
flex-direction: column;
position: fixed;
- z-index: 900;
.row {
flex: 1;