diff --git a/src/context/inbox.tsx b/src/context/inbox.tsx index 44b24e53..d37380e0 100644 --- a/src/context/inbox.tsx +++ b/src/context/inbox.tsx @@ -43,6 +43,8 @@ export const InboxProvider = (props: { children: JSX.Element }) => { }, onerror(err) { console.error('sse connection closed by error', err) + + throw new Error() // NOTE: simple hack to close the connection } }) diff --git a/src/graphql/types.gen.ts b/src/graphql/types.gen.ts index 293826d2..0aa3f6b8 100644 --- a/src/graphql/types.gen.ts +++ b/src/graphql/types.gen.ts @@ -67,7 +67,6 @@ export type Chat = { title?: Maybe unread?: Maybe updatedAt: Scalars['Int'] - users?: Maybe>> } export type ChatInput = { @@ -78,7 +77,7 @@ export type ChatInput = { export type ChatMember = { id: Scalars['Int'] - lastSeen?: Maybe + lastSeen: Maybe name: Scalars['String'] online?: Maybe slug: Scalars['String']