@@ -149,13 +156,15 @@ export const InboxView = () => {
Все
- Переписки
+ Переписки
Группы
- {(author) => }
+
+ {(author) => }
+
diff --git a/src/graphql/mutation/create-chat-message.ts b/src/graphql/mutation/create-chat-message.ts
new file mode 100644
index 00000000..9fda159a
--- /dev/null
+++ b/src/graphql/mutation/create-chat-message.ts
@@ -0,0 +1,13 @@
+import { gql } from '@urql/core'
+
+export default gql`
+ mutation createMessage($chat: String!, $body: String!) {
+ createMessage(chat: $chat, body: $body) {
+ error
+ author {
+ slug
+ id
+ }
+ }
+ }
+`
diff --git a/src/stores/inbox.ts b/src/stores/inbox.ts
index 72996b41..19e727da 100644
--- a/src/stores/inbox.ts
+++ b/src/stores/inbox.ts
@@ -1,4 +1,13 @@
import { createSignal } from 'solid-js'
import type { Chat } from '../graphql/types.gen'
+import { apiClient } from '../utils/apiClient'
export const [chats, setChats] = createSignal