From 16e1ccb3ca9c3808fe78daa63516dab0e556ccfa Mon Sep 17 00:00:00 2001 From: "shardul.cometchat" Date: Tue, 2 Jun 2026 18:43:59 +0530 Subject: [PATCH] docs(ENG-35766): add quotedReplies notification preference --- chat-apis.json | 59 ++++++++++++++++++++++++++++++++++- notifications/preferences.mdx | 16 ++++++++++ 2 files changed, 74 insertions(+), 1 deletion(-) diff --git a/chat-apis.json b/chat-apis.json index 17dc9cd86..4b53bf26b 100644 --- a/chat-apis.json +++ b/chat-apis.json @@ -8739,6 +8739,8 @@ "messagesOverride": true, "repliesSetting": 2, "repliesOverride": true, + "quotedRepliesSetting": 2, + "quotedRepliesOverride": true, "messageDeletedSetting": 2, "reactionsSetting": 2, "reactionsOverride": true, @@ -8779,6 +8781,8 @@ "messagesOverride": true, "repliesSetting": 2, "repliesOverride": true, + "quotedRepliesSetting": 2, + "quotedRepliesOverride": true, "messageEditedSetting": 2, "messageDeletedSetting": 2, "reactionsSetting": 2, @@ -9538,6 +9542,8 @@ "messagesOverride": true, "repliesSetting": 2, "repliesOverride": true, + "quotedRepliesSetting": 2, + "quotedRepliesOverride": true, "reactionsSetting": 2, "reactionsOverride": true, "memberLeftSetting": 1, @@ -9560,6 +9566,8 @@ "messagesOverride": true, "repliesSetting": 2, "repliesOverride": true, + "quotedRepliesSetting": 2, + "quotedRepliesOverride": true, "reactionsSetting": 2, "reactionsOverride": true }, @@ -9735,6 +9743,8 @@ "messagesOverride": true, "repliesSetting": 2, "repliesOverride": true, + "quotedRepliesSetting": 2, + "quotedRepliesOverride": true, "reactionsSetting": 2, "reactionsOverride": true, "memberLeftSetting": 1, @@ -9757,6 +9767,8 @@ "messagesOverride": true, "repliesSetting": 2, "repliesOverride": true, + "quotedRepliesSetting": 2, + "quotedRepliesOverride": true, "reactionsSetting": 2, "reactionsOverride": true }, @@ -9920,6 +9932,7 @@ "groupPreferences": { "groupMessages": 2, "groupReplies": 2, + "groupQuotedReplies": 2, "groupReactions": 2, "groupMemberLeft": 1, "groupMemberAdded": 1, @@ -9932,6 +9945,7 @@ "oneOnOnePreferences": { "oneOnOneMessages": 2, "oneOnOneReplies": 2, + "oneOnOneQuotedReplies": 2, "oneOnOneReactions": 2 }, "mutePreferences": { @@ -11962,13 +11976,14 @@ { "name": "reason", "in": "query", - "description": "Available only when the value of notificationTriggered is false.\nThis contains the reason for not triggering the notification provider.\n\nTo filter logs using reason, use the following values: MESSAGES_PREFERENCE, REPLIES_PREFERENCE, MESSAGE_ACTIONS_PREFERENCE, REACTIONS_PREFERENCE, GROUP_ACTIONS_PREFERENCE, DND_PREFERENCE, MUTE_PREFERENCE, SCHEDULE_PREFERENCE, CALL_PREFERENCE, QUOTA_PREFERENCE, MISSING_EMAIL, MISSING_PHNO, INVALID_PUSH_PROVIDER_ID, TIMED_OUT, NOT_FOUND, TWILIO_CREATE_ERROR.", + "description": "Available only when the value of notificationTriggered is false.\nThis contains the reason for not triggering the notification provider.\n\nTo filter logs using reason, use the following values: MESSAGES_PREFERENCE, REPLIES_PREFERENCE, QUOTED_REPLIES_PREFERENCE, MESSAGE_ACTIONS_PREFERENCE, REACTIONS_PREFERENCE, GROUP_ACTIONS_PREFERENCE, DND_PREFERENCE, MUTE_PREFERENCE, SCHEDULE_PREFERENCE, CALL_PREFERENCE, QUOTA_PREFERENCE, MISSING_EMAIL, MISSING_PHNO, INVALID_PUSH_PROVIDER_ID, TIMED_OUT, NOT_FOUND, TWILIO_CREATE_ERROR.", "required": false, "schema": { "type": "string", "enum": [ "MESSAGES_PREFERENCE", "REPLIES_PREFERENCE", + "QUOTED_REPLIES_PREFERENCE", "MESSAGE_ACTIONS_PREFERENCE", "REACTIONS_PREFERENCE", "GROUP_ACTIONS_PREFERENCE", @@ -15137,6 +15152,18 @@ "repliesOverride": { "type": "boolean" }, + "quotedRepliesSetting": { + "description": "1: Don't notify\n2: Notify for all replies\n3: Notify for replies with mentions", + "type": "integer", + "enum": [ + 1, + 2, + 3 + ] + }, + "quotedRepliesOverride": { + "type": "boolean" + }, "reactionsSetting": { "description": "1: Don't notify\n2: Notify for reactions received on own messages\n3: Notify for reactions received on all messages", "type": "integer", @@ -17124,6 +17151,18 @@ "repliesOverride": { "type": "boolean" }, + "quotedRepliesSetting": { + "description": "1: Don't notify\n2: Notify for all replies\n3: Notify for replies with mentions", + "type": "integer", + "enum": [ + 1, + 2, + 3 + ] + }, + "quotedRepliesOverride": { + "type": "boolean" + }, "reactionsSetting": { "description": "1: Don't notify\n2: Notify for reactions received on own messages\n3: Notify for reactions received on all messages", "type": "integer", @@ -17210,6 +17249,15 @@ 3 ] }, + "groupQuotedReplies": { + "description": "1: Don't notify\n2: Notify for all replies\n3: Notify for replies with mentions", + "type": "integer", + "enum": [ + 1, + 2, + 3 + ] + }, "groupReactions": { "description": "1: Don't notify\n2: Notify for reactions received on own messages\n3: Notify for reactions received on all messages", "type": "integer", @@ -17298,6 +17346,15 @@ 3 ] }, + "oneOnOneQuotedReplies": { + "description": "1: Don't notify\n2: Notify for all replies\n3: Notify for replies with mentions", + "type": "integer", + "enum": [ + 1, + 2, + 3 + ] + }, "oneOnOneReactions": { "description": "1: Don't notify\n2: Notify for reactions received on own messages\n3: Notify for reactions received on all messages", "type": "integer", diff --git a/notifications/preferences.mdx b/notifications/preferences.mdx index fd2570934..cecbda53b 100644 --- a/notifications/preferences.mdx +++ b/notifications/preferences.mdx @@ -48,6 +48,7 @@ As the name suggests, these preferences help you to configure Notifications for | --------------- | --------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ------------------------ | | Conversations | New messages | • Don't notify
• **Notify for all messages (Default)**
• Notify for messages with mentions | • **Yes (Default)**
• No | | | New replies | • Don't notify
• **Notify for all replies (Default)**
• Notify for replies with mentions | • **Yes (Default)**
• No | +| | New quoted replies | • Don't notify
• **Notify for all replies (Default)**
• Notify for replies with mentions | • **Yes (Default)**
• No | | Message actions | Message is edited | • Don't notify
• **Notify (Default)** | • Yes
• **No (Default)** | | | Message is deleted | • Don't notify
• **Notify (Default)** | • Yes
• **No (Default)** | | | Message receives a reaction | • Don't notify
• Notify for reactions received on all messages
• **Notify for reactions received on own messages (Default)** | • **Yes (Default)**
• No | @@ -85,6 +86,7 @@ const groupPreferences = preferences.getGroupPreferences(); const groupMessagesPreference = groupPreferences.getMessagesPreference(); const groupRepliesPreference = groupPreferences.getRepliesPreference(); +const groupQuotedRepliesPreference = groupPreferences.getQuotedRepliesPreference(); const groupReactionsPreference = groupPreferences.getReactionsPreference(); const memberLeftPreference = groupPreferences.getMemberLeftPreference(); const memberAddedPreference = groupPreferences.getMemberAddedPreference(); @@ -108,6 +110,7 @@ CometChatNotifications.fetchPreferences(new CometChat.CallbackListener• **Notify for all messages (Default)**
• Notify for messages with mentions | • **Yes (Default)**
• No | | | New replies | • Don't notify
• **Notify for all replies (Default)**
• Notify for replies with mentions | • **Yes (Default)**
• No | +| | New quoted replies | • Don't notify
• **Notify for all replies (Default)**
• Notify for replies with mentions | • **Yes (Default)**
• No | | Message actions | Message is edited | • Don't notify
• **Notify (Default)** | • Yes
• **No (Default)** | | | Message is deleted | • Don't notify
• **Notify (Default)** | • Yes
• **No (Default)** | | | Message receives a reaction | • Don't notify
• Notify for reactions received on all messages
• **Notify for reactions received on own messages (Default)** | • **Yes (Default)**
• No | @@ -379,6 +388,7 @@ const oneOnOnePreferences = preferences.getOneOnOnePreferences(); const oneOnOneMessagesPreference = oneOnOnePreferences.getMessagesPreference(); const oneOnOneRepliesPreference = oneOnOnePreferences.getRepliesPreference(); +const oneOnOneQuotedRepliesPreference = oneOnOnePreferences.getQuotedRepliesPreference(); const oneOnOneReactionsPreference = oneOnOnePreferences.getReactionsPreference(); ``` @@ -395,6 +405,7 @@ CometChatNotifications.fetchPreferences(new CometChat.CallbackListener