diff --git a/src/graphql/query/im-chats.ts b/src/graphql/query/im-chats.ts index 993da387..a87f7b34 100644 --- a/src/graphql/query/im-chats.ts +++ b/src/graphql/query/im-chats.ts @@ -13,7 +13,7 @@ export default gql` users { slug name - pic + userpic } title createdAt diff --git a/src/graphql/query/im-load-messages.ts b/src/graphql/query/im-load-messages.ts index 0e2be8f7..d9ae1404 100644 --- a/src/graphql/query/im-load-messages.ts +++ b/src/graphql/query/im-load-messages.ts @@ -3,11 +3,11 @@ import { gql } from '@urql/core' export default gql` query LoadMessagesQuery($chatId: String!, $offset: Int, $amount: Int) { loadChat(chatId: $chatId, offset: $offset, amount: $amount) { - id - title - desc - slug - amount + author + body + createdAt + updatedAt + seen } } `