From e2dc68a91301e4fabc6273ee25fe51dae4cc2e13 Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 4 Jan 2024 09:58:58 +0300 Subject: [PATCH] comments --- src/graphql/client/notifier.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/graphql/client/notifier.ts b/src/graphql/client/notifier.ts index edbd58c5..dc44feba 100644 --- a/src/graphql/client/notifier.ts +++ b/src/graphql/client/notifier.ts @@ -19,13 +19,16 @@ export const notifierClient = { }, markSeen: async (notification_id: number): Promise => { + // call when notification is clicked await notifierClient.private.mutation(markSeenMutation, { notification_id }).toPromise() }, markSeenAfter: async (options: MutationMark_Seen_AfterArgs): Promise => { + // call when 'mark all as seen' cliecked await notifierClient.private.mutation(markSeenAfterMutation, options).toPromise() }, markSeenThread: async (thread: string): Promise => { + // call when notification group is clicked await notifierClient.private.mutation(markThreadSeenMutation, { thread }).toPromise() }, }