Skip to content

Commit

Permalink
Removed createDirectChat createGroupChat createMessageChat mutations
Browse files Browse the repository at this point in the history
  • Loading branch information
govindsingh3477 committed Oct 31, 2024
1 parent 2c606a4 commit e634495
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 45 deletions.
43 changes: 0 additions & 43 deletions src/GraphQl/Mutations/OrganizationMutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,33 +57,7 @@ export const REMOVE_SAMPLE_ORGANIZATION_MUTATION = gql`
* @returns The created direct chat object.
*/

export const CREATE_GROUP_CHAT = gql`
mutation createGroupChat(
$userIds: [ID!]!
$organizationId: ID!
$title: String!
) {
createGroupChat(
data: {
userIds: $userIds
organizationId: $organizationId
title: $title
}
) {
_id
}
}
`;

export const CREATE_DIRECT_CHAT = gql`
mutation createDirectChat($userIds: [ID!]!, $organizationId: ID) {
createDirectChat(
data: { userIds: $userIds, organizationId: $organizationId }
) {
_id
}
}
`;

export const CREATE_CHAT = gql`
mutation createChat(
Expand Down Expand Up @@ -140,23 +114,6 @@ export const SEND_MESSAGE_TO_CHAT = gql`
}
`;

export const CREATE_MESSAGE_CHAT = gql`
mutation createMessageChat($receiver: ID!, $messageContent: String!) {
createMessageChat(data: { receiver: $receiver, message: $messageContent }) {
_id
createdAt
message
languageBarrier
receiver {
_id
}
sender {
_id
}
updatedAt
}
}
`;

export const MESSAGE_SENT_TO_CHAT = gql`
subscription messageSentToChat($userId: ID!) {
Expand Down
1 change: 0 additions & 1 deletion src/GraphQl/Mutations/mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,6 @@ export {
// Changes the role of a user in an organization
export {
ADD_CUSTOM_FIELD,
CREATE_DIRECT_CHAT,
CREATE_SAMPLE_ORGANIZATION_MUTATION,
JOIN_PUBLIC_ORGANIZATION,
PLUGIN_SUBSCRIPTION,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { useMutation, useQuery } from '@apollo/client';
import useLocalStorage from 'utils/useLocalstorage';
import {
CREATE_CHAT,
CREATE_DIRECT_CHAT,
} from 'GraphQl/Mutations/OrganizationMutations';
import Table from '@mui/material/Table';
import TableCell, { tableCellClasses } from '@mui/material/TableCell';
Expand Down

0 comments on commit e634495

Please sign in to comment.