@timardex/cluemart-shared 1.2.61 → 1.2.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ import * as _apollo_client from '@apollo/client';
2
2
  import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-BkGGnxjl.js';
3
3
  import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType } from '../global-BY8seqWN.js';
4
4
  import { EnumResourceType } from '../enums/index.js';
5
- import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType } from '../ad-DDPQcDOS.js';
5
+ import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType } from '../ad-DMOf8pe0.js';
6
6
  import 'react-hook-form';
7
7
 
8
8
  declare const useAdminUpdateResourceType: () => {
@@ -792,11 +792,8 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = gql7`
792
792
  `;
793
793
  var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = gql7`
794
794
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
795
- removeParticipantFromChat(chatId: $chatId, userId: $userId) {
796
- ...ChatFields
797
- }
795
+ removeParticipantFromChat(chatId: $chatId, userId: $userId)
798
796
  }
799
- ${CHAT_FIELDS_FRAGMENT}
800
797
  `;
801
798
 
802
799
  // src/graphql/hooks/chat/hooksMutation.ts
@@ -851,18 +848,7 @@ var useRemoveParticipantFromChat = () => {
851
848
  REMOVE_PARTICIPANT_FROM_CHAT_MUTATION,
852
849
  {
853
850
  awaitRefetchQueries: true,
854
- refetchQueries: (mutationResult) => {
855
- const chatId = mutationResult?.data?.removeParticipantFromChat?._id;
856
- return [
857
- {
858
- query: CHAT,
859
- variables: { _id: chatId }
860
- },
861
- {
862
- query: USER_CHATS
863
- }
864
- ];
865
- }
851
+ refetchQueries: [{ query: USER_CHATS }]
866
852
  }
867
853
  );
868
854
  return { error, loading, removeParticipantFromChat };