Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -3226,10 +3226,14 @@
"sdk/javascript/message-filtering",
"sdk/javascript/retrieve-conversations",
"sdk/javascript/threaded-messages",
"sdk/javascript/thread-subscription",
"sdk/javascript/edit-message",
"sdk/javascript/delete-message",
"sdk/javascript/flag-message",
"sdk/javascript/pin-message",
"sdk/javascript/save-message",
"sdk/javascript/delete-conversation",
"sdk/javascript/pin-conversation",
"sdk/javascript/typing-indicators",
"sdk/javascript/transient-messages",
"sdk/javascript/delivery-read-receipts",
Expand Down
84 changes: 80 additions & 4 deletions sdk/javascript/all-real-time-listeners.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
description: "Use CometChat real-time listeners for user presence, groups, messages, calls, AI assistant events, and ongoing calls."
---

CometChat provides 4 listeners viz.
CometChat provides the following listeners.

1. [User Listener](/sdk/javascript/all-real-time-listeners#user-listener)
2. [Group Listener](/sdk/javascript/all-real-time-listeners#group-listener)
3. [Message Listener](/sdk/javascript/all-real-time-listeners#message-listener)
4. [Call Listener](/sdk/javascript/all-real-time-listeners#call-listener)
5. [AI Assistant Listener](/sdk/javascript/all-real-time-listeners#ai-assistant-listener)
6. [Ongoing Call Listener (Calls SDK)](/sdk/javascript/all-real-time-listeners#ongoing-call-listener-calls-sdk)
4. [Conversation Listener](/sdk/javascript/all-real-time-listeners#conversation-listener)
5. [Call Listener](/sdk/javascript/all-real-time-listeners#call-listener)
6. [AI Assistant Listener](/sdk/javascript/all-real-time-listeners#ai-assistant-listener)
7. [Ongoing Call Listener (Calls SDK)](/sdk/javascript/all-real-time-listeners#ongoing-call-listener-calls-sdk)

## User Listener

Expand All @@ -34,9 +35,9 @@
/* when someuser/friend comes online, user will be received here */
console.log("On User Online:", { onlineUser });
},
onUserOffline: (offlineUser: CometChat.User) => {

Check warning on line 38 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L38

Did you really mean 'offlineUser'?
/* when someuser/friend went offline, user will be received here */
console.log("On User Offline:", { offlineUser });

Check warning on line 40 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L40

Did you really mean 'offlineUser'?
},
})
);
Expand Down Expand Up @@ -91,13 +92,13 @@

| Method | Information |
| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| **onGroupMemberJoined(action: CometChat.Action, joinedUser: CometChat.User, joinedGroup: CometChat.Group)** | This method is triggered when a user joins any group. All the members present in the group will receive this event. |

Check warning on line 95 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L95

Did you really mean 'joinedUser'?

Check warning on line 95 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L95

Did you really mean 'joinedGroup'?
| **onGroupMemberLeft(action: CometChat.Action, leftUser: CometChat.User, leftGroup: CometChat.Group)** | This method is triggered when a user who was a member of any group leaves the group. All the members of the group receive this event. |

Check warning on line 96 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L96

Did you really mean 'leftUser'?

Check warning on line 96 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L96

Did you really mean 'leftGroup'?
| **onGroupMemberKicked(action: CometChat.Action, kickedUser: CometChat.User, kickedBy: CometChat.User, kickedFrom: CometChat.Group)** | This method is triggered when a user is kicked from a group. All the members including the user receive this event |

Check warning on line 97 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L97

Did you really mean 'kickedUser'?

Check warning on line 97 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L97

Did you really mean 'kickedBy'?

Check warning on line 97 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L97

Did you really mean 'kickedFrom'?
| **onGroupMemberBanned(action: CometChat.Action, bannedUser: CometChat.User, bannedBy: CometChat.User, bannedFrom: CometChat.Group)** | This method is triggered when a user is banned from a group. All the members including the user receive this event |

Check warning on line 98 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L98

Did you really mean 'bannedUser'?

Check warning on line 98 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L98

Did you really mean 'bannedBy'?

Check warning on line 98 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L98

Did you really mean 'bannedFrom'?
| **onGroupMemberUnbanned(action: CometChat.Action, unbannedUser: CometChat.User, unbannedBy: CometChat.User, unbannedFrom: CometChat.Group)** | This method is triggered when a user is banned from a group. All the members of the group receive this event. |

Check warning on line 99 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L99

Did you really mean 'unbannedUser'?

Check warning on line 99 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L99

Did you really mean 'unbannedBy'?

Check warning on line 99 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L99

Did you really mean 'unbannedFrom'?
| **onGroupMemberScopeChanged(action: CometChat.Action, changedUser: CometChat.User, newScope: string, oldScope: string, changedGroup: CometChat.Group)** | This method is triggered when the scope of any Group Member has been changed. All the members that are a part of that group receive this event |

Check warning on line 100 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L100

Did you really mean 'changedUser'?

Check warning on line 100 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L100

Did you really mean 'newScope'?

Check warning on line 100 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L100

Did you really mean 'oldScope'?

Check warning on line 100 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L100

Did you really mean 'changedGroup'?
| **onMemberAddedToGroup(action: CometChat.Action, userAdded: CometChat.User, addedBy: CometChat.User, addedTo: CometChat.Group)** | This method is triggered when a user is added to any group. All the members including the user himself receive this event. |

Check warning on line 101 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L101

Did you really mean 'userAdded'?

Check warning on line 101 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L101

Did you really mean 'addedBy'?

Check warning on line 101 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L101

Did you really mean 'addedTo'?

To add the `GroupListener`:

Expand All @@ -116,76 +117,76 @@
},
onGroupMemberLeft: (
message: CometChat.Action,
leftUser: CometChat.User,

Check warning on line 120 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L120

Did you really mean 'leftUser'?
leftGroup: CometChat.Group

Check warning on line 121 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L121

Did you really mean 'leftGroup'?
) => {
console.log("onGroupMemberLeft", { message, leftUser, leftGroup });

Check warning on line 123 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L123

Did you really mean 'leftUser'?

Check warning on line 123 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L123

Did you really mean 'leftGroup'?
},
onGroupMemberKicked: (
message: CometChat.Action,
kickedUser: CometChat.User,

Check warning on line 127 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L127

Did you really mean 'kickedUser'?
kickedBy: CometChat.User,

Check warning on line 128 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L128

Did you really mean 'kickedBy'?
kickedFrom: CometChat.Group

Check warning on line 129 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L129

Did you really mean 'kickedFrom'?
) => {
console.log("onGroupMemberKicked", {
message,
kickedUser,

Check warning on line 133 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L133

Did you really mean 'kickedUser'?
kickedBy,

Check warning on line 134 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L134

Did you really mean 'kickedBy'?
kickedFrom,

Check warning on line 135 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L135

Did you really mean 'kickedFrom'?
});
},
onGroupMemberBanned: (
message: CometChat.Action,
bannedUser: CometChat.User,

Check warning on line 140 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L140

Did you really mean 'bannedUser'?
bannedBy: CometChat.User,

Check warning on line 141 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L141

Did you really mean 'bannedBy'?
bannedFrom: CometChat.Group

Check warning on line 142 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L142

Did you really mean 'bannedFrom'?
) => {
console.log("onGroupMemberBanned", {
message,
bannedUser,

Check warning on line 146 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L146

Did you really mean 'bannedUser'?
bannedBy,

Check warning on line 147 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L147

Did you really mean 'bannedBy'?
bannedFrom,

Check warning on line 148 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L148

Did you really mean 'bannedFrom'?
});
},
onGroupMemberUnbanned: (
message: CometChat.Action,
unbannedUser: CometChat.User,

Check warning on line 153 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L153

Did you really mean 'unbannedUser'?
unbannedBy: CometChat.User,

Check warning on line 154 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L154

Did you really mean 'unbannedBy'?
unbannedFrom: CometChat.Group

Check warning on line 155 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L155

Did you really mean 'unbannedFrom'?
) => {
console.log("onGroupMemberUnbanned", {
message,
unbannedUser,

Check warning on line 159 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L159

Did you really mean 'unbannedUser'?
unbannedBy,

Check warning on line 160 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L160

Did you really mean 'unbannedBy'?
unbannedFrom,

Check warning on line 161 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L161

Did you really mean 'unbannedFrom'?
});
},
onGroupMemberScopeChanged: (
message: CometChat.Action,
changedUser: CometChat.User,

Check warning on line 166 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L166

Did you really mean 'changedUser'?
newScope: string,

Check warning on line 167 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L167

Did you really mean 'newScope'?
oldScope: string,

Check warning on line 168 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L168

Did you really mean 'oldScope'?
changedGroup: CometChat.Group

Check warning on line 169 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L169

Did you really mean 'changedGroup'?
) => {
console.log("onGroupMemberScopeChanged", {
message,
changedUser,

Check warning on line 173 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L173

Did you really mean 'changedUser'?
newScope,

Check warning on line 174 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L174

Did you really mean 'newScope'?
oldScope,

Check warning on line 175 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L175

Did you really mean 'oldScope'?
changedGroup,

Check warning on line 176 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L176

Did you really mean 'changedGroup'?
});
},
onMemberAddedToGroup: (
message: CometChat.Action,
userAdded: CometChat.User,

Check warning on line 181 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L181

Did you really mean 'userAdded'?
addedby: CometChat.User,

Check warning on line 182 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L182

Did you really mean 'addedby'?
addedTo: CometChat.Group

Check warning on line 183 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L183

Did you really mean 'addedTo'?
) => {
console.log("onMemberAddedToGroup", {
message,
userAdded,

Check warning on line 187 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L187

Did you really mean 'userAdded'?
addedby,

Check warning on line 188 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L188

Did you really mean 'addedby'?
addedTo,

Check warning on line 189 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L189

Did you really mean 'addedTo'?
});
},
})
Expand Down Expand Up @@ -308,6 +309,10 @@
| **onMessagesDeliveredToAll(receipt: CometChat.MessageReceipt)** | This event is triggered when a group message is delivered to all members. Group conversations only. |
| **onMessagesReadByAll(receipt: CometChat.MessageReceipt)** | This event is triggered when a group message is read by all members. Group conversations only. |
| **onAIAssistantMessageReceived(message: CometChat.AIAssistantMessage)** | This event is triggered when a persisted AI assistant reply is received after an agent run completes. |
| **onMessagePinned(message: CometChat.BaseMessage)** | This event is triggered when a message is pinned in a user/group conversation. Broadcast to everyone in that conversation. |
| **onMessageUnpinned(message: CometChat.BaseMessage)** | This event is triggered when a message is unpinned in a user/group conversation. |
| **onMessageSaved(message: CometChat.BaseMessage)** | This event is triggered when the logged-in user saves a message. Private and delivered to that user's other devices only. |
| **onMessageUnsaved(message: CometChat.BaseMessage)** | This event is triggered when the logged-in user unsaves a message. |

Check warning on line 315 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L315

Did you really mean 'unsaves'?
| **onAIToolResultReceived(message: CometChat.AIToolResultMessage)** | This event is triggered when a persisted AI tool result message is received after an agent run completes. |
| **onAIToolArgumentsReceived(message: CometChat.AIToolArgumentMessage)** | This event is triggered when a persisted AI tool argument message is received after an agent run completes. |
| **onCardMessageReceived(message: CometChat.CardMessage)** | This event is triggered when a standalone [card message](/sdk/javascript/card-messages) is received. |
Expand All @@ -323,23 +328,23 @@
onTextMessageReceived: (textMessage: CometChat.TextMessage) => {
console.log("Text message received successfully", textMessage);
},
onMediaMessageReceived: (mediaMessage: CometChat.MediaMessage) => {

Check warning on line 331 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L331

Did you really mean 'mediaMessage'?
console.log("Media message received successfully", mediaMessage);

Check warning on line 332 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L332

Did you really mean 'mediaMessage'?
},
onCustomMessageReceived: (customMessage: CometChat.CustomMessage) => {

Check warning on line 334 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L334

Did you really mean 'customMessage'?
console.log("Custom message received successfully", customMessage);

Check warning on line 335 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L335

Did you really mean 'customMessage'?
},
onMessagesDelivered: (messageReceipt: CometChat.MessageReceipt) => {

Check warning on line 337 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L337

Did you really mean 'messageReceipt'?
console.log("Message Delivered", messageReceipt);

Check warning on line 338 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L338

Did you really mean 'messageReceipt'?
},
onMessagesRead: (messageReceipt: CometChat.MessageReceipt) => {

Check warning on line 340 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L340

Did you really mean 'messageReceipt'?
console.log("Message Read", messageReceipt);

Check warning on line 341 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L341

Did you really mean 'messageReceipt'?
},
onTypingStarted: (typingIndicator: CometChat.TypingIndicator) => {

Check warning on line 343 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L343

Did you really mean 'typingIndicator'?
console.log("Typing Started", typingIndicator);

Check warning on line 344 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L344

Did you really mean 'typingIndicator'?
},
onTypingEnded: (typingIndicator: CometChat.TypingIndicator) => {
console.log("Typing Ended", typingIndicator);

Check warning on line 347 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L347

Did you really mean 'typingIndicator'?
},
onMessageDeleted: (message: CometChat.BaseMessage) => {
console.log("Message Delted", message);
Expand All @@ -360,10 +365,10 @@
console.log("Message Moderated", message);
},
onMessagesDeliveredToAll: (messageReceipt: CometChat.MessageReceipt) => {
console.log("Message Delivered to All", messageReceipt);

Check warning on line 368 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L368

Did you really mean 'messageReceipt'?
},
onMessagesReadByAll: (messageReceipt: CometChat.MessageReceipt) => {
console.log("Message Read by All", messageReceipt);

Check warning on line 371 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L371

Did you really mean 'messageReceipt'?
},
onAIAssistantMessageReceived: (message: CometChat.AIAssistantMessage) => {
console.log("AI Assistant message received", message);
Expand Down Expand Up @@ -474,6 +479,77 @@

</Tabs>

## Conversation Listener

Receive events when a conversation is pinned or unpinned. This is a separate channel from `MessageListener` because its payload is a `Conversation`, not a message.

| Method | Information |
| ----------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| **onConversationPinned(conversation: CometChat.Conversation)** | Triggered when a conversation is pinned — by the logged-in user on another device, or globally by an admin. |
| **onConversationUnpinned(conversation: CometChat.Conversation)** | Triggered when a conversation is unpinned. The `Conversation` arrives with its pin attributes cleared. |

<Tabs>
<Tab title="TypeScript">
```typescript
let listenerID: string = "UNIQUE_LISTENER_ID";

CometChat.addConversationListener(
listenerID,
new CometChat.ConversationListener({
onConversationPinned: (conversation: CometChat.Conversation) => {
console.log("Conversation pinned", conversation);
},
onConversationUnpinned: (conversation: CometChat.Conversation) => {
console.log("Conversation unpinned", conversation);
},
})
);
```

</Tab>

<Tab title="JavaScript">
```javascript
let listenerID = "UNIQUE_LISTENER_ID";

CometChat.addConversationListener(
listenerID,
new CometChat.ConversationListener({
onConversationPinned: (conversation) => {
console.log("Conversation pinned", conversation);
},
onConversationUnpinned: (conversation) => {
console.log("Conversation unpinned", conversation);
},
})
);
```

</Tab>

</Tabs>

Remove the listener once you are done:

<Tabs>
<Tab title="TypeScript">
```typescript
CometChat.removeConversationListener("UNIQUE_LISTENER_ID");
```

</Tab>

<Tab title="JavaScript">
```javascript
CometChat.removeConversationListener("UNIQUE_LISTENER_ID");
```

</Tab>

</Tabs>

See [Pin A Conversation](/sdk/javascript/pin-conversation) for the full feature.

## Call Listener

Receive events for incoming and outgoing call state changes.
Expand Down Expand Up @@ -695,7 +771,7 @@
| `event.user.name` | `string` | Name of the user who started recording |
| `event.user.uid` | `string` | UID of the user who started recording |

**`onRecordingStopped()`**, **`onCallEnded()`**, **`onSessionTimeout()`**, **`onCallEndButtonPressed()`**, **`onScreenShareStarted()`**, **`onScreenShareStopped()`** — receive no arguments.

Check warning on line 774 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L774

Did you really mean 'listenerId'?

<Tabs>
<Tab title="TypeScript">
Expand All @@ -707,7 +783,7 @@
console.log("User joined:", user);
},
onUserLeft: (user: any) => {
console.log("User left:", user);

Check warning on line 786 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L786

Did you really mean 'onError'?
},
onCallEnded: () => {
console.log("Call ended");
Expand Down Expand Up @@ -773,15 +849,15 @@
const listenerID: string = "UNIQUE_LISTENER_ID";
CometChat.addLoginListener(
listenerID,
new CometChat.LoginListener({

Check warning on line 852 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L852

Did you really mean 'loginFailure'?
loginSuccess: (user: CometChat.User) => {
console.log("LoginListener :: loginSuccess", user);

Check warning on line 854 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L854

Did you really mean 'loginFailure'?

Check warning on line 854 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L854

Did you really mean 'logoutSuccess'?
},
loginFailure: (error: CometChat.CometChatException) => {

Check warning on line 856 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L856

Did you really mean 'logoutSuccess'?
console.log("LoginListener :: loginFailure", error);

Check warning on line 857 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L857

Did you really mean 'logoutFailure'?
},
logoutSuccess: () => {
console.log("LoginListener :: logoutSuccess");

Check warning on line 860 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L860

Did you really mean 'logoutFailure'?
},
logoutFailure: (error: CometChat.CometChatException) => {
console.log("LoginListener :: logoutFailure", error);
Expand Down Expand Up @@ -836,10 +912,10 @@
```typescript
const listenerID: string = "UNIQUE_LISTENER_ID";
CometChat.addConnectionListener(
listenerID,

Check warning on line 915 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L915

Did you really mean 'inConnecting'?
new CometChat.ConnectionListener({
onConnected: () => {
console.log("ConnectionListener :: connected");

Check warning on line 918 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L918

Did you really mean 'onDisconnected'?
},
inConnecting: () => {
console.log("ConnectionListener :: connecting");
Expand All @@ -858,10 +934,10 @@
```javascript
const listenerID = "UNIQUE_LISTENER_ID";
CometChat.addConnectionListener(
listenerID,

Check warning on line 937 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L937

Did you really mean 'inConnecting'?
new CometChat.ConnectionListener({
onConnected: () => {
console.log("ConnectionListener :: connected");

Check warning on line 940 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/all-real-time-listeners.mdx#L940

Did you really mean 'onDisconnected'?
},
inConnecting: () => {
console.log("ConnectionListener :: connecting");
Expand Down
95 changes: 95 additions & 0 deletions sdk/javascript/message-filtering.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<Tabs>
<Tab title="TypeScript">
```typescript
let messagesRequest: CometChat.MessagesRequest =

Check warning on line 34 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L34

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder().setLimit(50).build();
```

Expand All @@ -39,7 +39,7 @@

<Tab title="JavaScript">
```javascript
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 42 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L42

Did you really mean 'messagesRequest'?
.setLimit(50)
.build();
```
Expand All @@ -56,7 +56,7 @@
<Tab title="TypeScript">
```typescript
let UID = "UID";
let messagesRequest: CometChat.MessagesRequest =

Check warning on line 59 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L59

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder().setUID(UID).setLimit(50).build();
```

Expand All @@ -65,7 +65,7 @@
<Tab title="JavaScript">
```javascript
let UID = "UID";
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 68 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L68

Did you really mean 'messagesRequest'?
.setUID(UID)
.setLimit(50)
.build();
Expand All @@ -85,7 +85,7 @@
<Tab title="TypeScript">
```typescript
let GUID: string = "GUID";
let messagesRequest: CometChat.MessagesRequest =

Check warning on line 88 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L88

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder().setGUID(GUID).setLimit(50).build();
```

Expand All @@ -94,7 +94,7 @@
<Tab title="JavaScript">
```javascript
let GUID = "GUID";
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 97 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L97

Did you really mean 'messagesRequest'?
.setGUID(GUID)
.setLimit(50)
.build();
Expand All @@ -114,9 +114,9 @@
<Tab title="TypeScript (User)">
```typescript
let UID: string = "UID",
messageId: number = 1,

Check warning on line 117 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L117

Did you really mean 'messageId'?
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 119 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L119

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setUID(UID)
.setMessageId(messageId)
Expand All @@ -129,9 +129,9 @@
<Tab title="JavaScript (User)">
```javascript
let UID = "UID";
let messageId = 1;

Check warning on line 132 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L132

Did you really mean 'messageId'?
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 134 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L134

Did you really mean 'messagesRequest'?
.setUID(UID)
.setMessageId(messageId)
.setLimit(limit)
Expand All @@ -143,9 +143,9 @@
<Tab title="TypeScript (Group)">
```typescript
let GUID: string = "GUID",
messageId: number = 1,

Check warning on line 146 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L146

Did you really mean 'messageId'?
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 148 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L148

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setUID(UID)
.setMessageId(messageId)
Expand All @@ -158,9 +158,9 @@
<Tab title="JavaScript (Group)">
```javascript
let GUID = "GUID";
let messageId = 1;

Check warning on line 161 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L161

Did you really mean 'messageId'?
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 163 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L163

Did you really mean 'messagesRequest'?
.setGUID(GUID)
.setMessageId(messageId)
.setLimit(limit)
Expand All @@ -183,7 +183,7 @@
let UID: string = "UID",
timestamp: number = 1602221371,
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 186 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L186

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setUID(UID)
.setTimestamp(timestamp)
Expand All @@ -198,7 +198,7 @@
let UID = "UID";
let timestamp = 1602221371;
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 201 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L201

Did you really mean 'messagesRequest'?
.setUID(UID)
.setTimestamp(timestamp)
.setLimit(limit)
Expand All @@ -212,7 +212,7 @@
let GUID: string = "GUID",
timestamp: number = 1602221371,
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 215 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L215

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setUID(UID)
.setTimestamp(timestamp)
Expand All @@ -227,7 +227,7 @@
let GUID = "GUID";
let timestamp = 1602221371;
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 230 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L230

Did you really mean 'messagesRequest'?
.setGUID(GUID)
.setTimestamp(timestamp)
.setLimit(limit)
Expand All @@ -249,7 +249,7 @@
```typescript
let UID: string = "UID",
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 252 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L252

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setUID(UID)
.setUnread(true)
Expand All @@ -263,7 +263,7 @@
```javascript
let UID = "UID";
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 266 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L266

Did you really mean 'messagesRequest'?
.setUID(UID)
.setUnread(true)
.setLimit(limit)
Expand All @@ -276,7 +276,7 @@
```typescript
let GUID: string = "GUID",
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 279 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L279

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setGUID(GUID)
.setUnread(true)
Expand All @@ -290,7 +290,7 @@
```javascript
let GUID = "GUID";
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 293 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L293

Did you really mean 'messagesRequest'?
.setGUID(GUID)
.setUnread(true)
.setLimit(limit)
Expand All @@ -312,7 +312,7 @@
```typescript
let UID: string = "UID",
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 315 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L315

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setUID(UID)
.hideMessagesFromBlockedUsers(true)
Expand All @@ -326,7 +326,7 @@
```javascript
let UID = "UID";
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 329 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L329

Did you really mean 'messagesRequest'?
.setUID(UID)
.hideMessagesFromBlockedUsers(true)
.setLimit(limit)
Expand All @@ -339,7 +339,7 @@
```typescript
let GUID: string = "GUID",
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 342 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L342

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setGUID(GUID)
.hideMessagesFromBlockedUsers(true)
Expand All @@ -353,7 +353,7 @@
```javascript
let GUID = "GUID";
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 356 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L356

Did you really mean 'messagesRequest'?
.setGUID(GUID)
.hideMessagesFromBlockedUsers(true)
.setLimit(limit)
Expand All @@ -376,7 +376,7 @@
let UID: string = "UID",
limit: number = 30,
timestamp: string = "1602221371",
messagesRequest: CometChat.MessagesRequest =

Check warning on line 379 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L379

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setUID(UID)
.setUpdatedAfter(timestamp)
Expand All @@ -391,7 +391,7 @@
let UID = "UID";
let limit = 30;
let timestamp = 1602221371;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 394 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L394

Did you really mean 'messagesRequest'?
.setUID(UID)
.setUpdatedAfter(timestamp)
.setLimit(limit)
Expand All @@ -405,7 +405,7 @@
let GUID: string = "GUID",
limit: number = 30,
timestamp: string = "1602221371",
messagesRequest: CometChat.MessagesRequest =

Check warning on line 408 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L408

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setGUID(GUID)
.setUpdatedAfter(timestamp)
Expand All @@ -420,7 +420,7 @@
let GUID = "GUID";
let limit = 30;
let timestamp = 1602221371;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 423 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L423

Did you really mean 'messagesRequest'?
.setGUID(GUID)
.setUpdatedAfter(timestamp)
.setLimit(limit)
Expand All @@ -443,7 +443,7 @@
let UID: string = "UID",
limit: number = 30,
timestamp: string = "1602221371",
messagesRequest: CometChat.MessagesRequest =

Check warning on line 446 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L446

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setUID(UID)
.setUpdatedAfter(timestamp)
Expand All @@ -459,7 +459,7 @@
let UID = "UID";
let limit = 30;
let timestamp = 1602221371;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 462 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L462

Did you really mean 'messagesRequest'?
.setUID(UID)
.setUpdatedAfter(timestamp)
.updatesOnly(true)
Expand All @@ -474,7 +474,7 @@
let GUID: string = "GUID",
limit: number = 30,
timestamp: string = "1602221371",
messagesRequest: CometChat.MessagesRequest =

Check warning on line 477 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L477

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setGUID(GUID)
.setUpdatedAfter(timestamp)
Expand All @@ -490,7 +490,7 @@
let GUID = "GUID";
let limit = 30;
let timestamp = 1602221371;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 493 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L493

Did you really mean 'messagesRequest'?
.setGUID(GUID)
.setUpdatedAfter(timestamp)
.updatesOnly(true)
Expand All @@ -514,7 +514,7 @@
let UID: string = "UID",
limit: number = 30,
categories: Array<String> = ["message", "custom"],
messagesRequest: CometChat.MessagesRequest =

Check warning on line 517 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L517

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setUID(UID)
.setCategories(categories)
Expand All @@ -529,7 +529,7 @@
let UID = "UID";
let limit = 30;
let categories = ["message", "custom"];
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 532 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L532

Did you really mean 'messagesRequest'?
.setUID(UID)
.setCategories(categories)
.setLimit(limit)
Expand All @@ -543,7 +543,7 @@
let GUID: string = "GUID",
limit: number = 30,
categories: Array<String> = ["message", "custom"],
messagesRequest: CometChat.MessagesRequest =

Check warning on line 546 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L546

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setGUID(GUID)
.setCategories(categories)
Expand All @@ -558,7 +558,7 @@
let GUID = "GUID";
let limit = 30;
let categories = ["message", "custom"];
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 561 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L561

Did you really mean 'messagesRequest'?
.setGUID(GUID)
.setCategories(categories)
.setLimit(limit)
Expand All @@ -582,7 +582,7 @@
limit: number = 30,
categories: Array<String> = ["message", "custom"],
types: Array<String> = ["image", "video", "audio", "file"],
messagesRequest: CometChat.MessagesRequest =

Check warning on line 585 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L585

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setUID(UID)
.setCategories(categories)
Expand All @@ -599,7 +599,7 @@
let limit = 30;
let categories = ["message"];
let types = ["image", "video", "audio", "file"];
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 602 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L602

Did you really mean 'messagesRequest'?
.setUID(UID)
.setCategories(categories)
.setTypes(types)
Expand All @@ -615,7 +615,7 @@
limit: number = 30,
categories: Array<String> = ["message", "custom"],
types: Array<String> = ["image", "video", "audio", "file"],
messagesRequest: CometChat.MessagesRequest =

Check warning on line 618 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L618

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setGUID(GUID)
.setCategories(categories)
Expand All @@ -632,7 +632,7 @@
let limit = 30;
let categories = ["message"];
let types = ["image", "video", "audio", "file"];
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 635 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L635

Did you really mean 'messagesRequest'?
.setGUID(GUID)
.setCategories(categories)
.setTypes(types)
Expand All @@ -655,8 +655,8 @@
```typescript
let UID: string = "UID",
limit: number = 30,
messageId: number = 1,

Check warning on line 658 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L658

Did you really mean 'messageId'?
messagesRequest: CometChat.MessagesRequest =

Check warning on line 659 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L659

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setUID(UID)
.setLimit(limit)
Expand All @@ -669,9 +669,9 @@
<Tab title="JavaScript (User)">
```javascript
let UID = "UID";
let messageId = 1;

Check warning on line 672 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L672

Did you really mean 'messageId'?
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 674 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L674

Did you really mean 'messagesRequest'?
.setUID(UID)
.setLimit(limit)
.setParentMessageId(messageId)
Expand All @@ -684,8 +684,8 @@
```typescript
let GUID: string = "GUID",
limit: number = 30,
messageId: number = 1,

Check warning on line 687 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L687

Did you really mean 'messageId'?
messagesRequest: CometChat.MessagesRequest =

Check warning on line 688 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L688

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setGUID(GUID)
.setLimit(limit)
Expand All @@ -698,9 +698,9 @@
<Tab title="JavaScript (Group)">
```javascript
let GUID = "GUID";
let messageId = 1;

Check warning on line 701 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L701

Did you really mean 'messageId'?
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 703 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L703

Did you really mean 'messagesRequest'?
.setGUID(GUID)
.setLimit(limit)
.setParentMessageId(messageId)
Expand All @@ -713,6 +713,101 @@

The above code returns messages belonging to the thread with the specified parent message ID.

## Pinned messages

Use `setPinned(true)` to fetch only the pinned messages of a conversation. A pinned list is conversation-scoped, so pair it with `setUID()` or `setGUID()` — exactly one of the two is required.

<Tabs>
<Tab title="TypeScript (User)">
```typescript
let UID: string = "UID",
limit: number = 50,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 725 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L725

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setUID(UID)
.setLimit(limit)
.setPinned(true)
.build();
```

</Tab>

<Tab title="JavaScript (User)">
```javascript
let UID = "UID";
let limit = 50;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 739 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L739

Did you really mean 'messagesRequest'?
.setUID(UID)
.setLimit(limit)
.setPinned(true)
.build();
```

</Tab>

<Tab title="TypeScript (Group)">
```typescript
let GUID: string = "GUID",
limit: number = 50,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 752 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L752

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setGUID(GUID)
.setLimit(limit)
.setPinned(true)
.build();
```

</Tab>

<Tab title="JavaScript (Group)">
```javascript
let GUID = "GUID";
let limit = 50;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 766 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L766

Did you really mean 'messagesRequest'?
.setGUID(GUID)
.setLimit(limit)
.setPinned(true)
.build();
```

</Tab>

</Tabs>

The list is ordered by pin time, most recently pinned first — not by when the messages were sent. See [Pin A Message](/sdk/javascript/pin-message) for the full feature.

## Saved messages

Use `setSaved(true)` to fetch the logged-in user's saved messages. The saved list is user-level and spans every conversation, so unlike the pinned list you do **not** set a UID or a GUID.

<Tabs>
<Tab title="TypeScript">
```typescript
let limit: number = 50,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 787 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L787

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setLimit(limit)
.setSaved(true)
.build();
```

</Tab>

<Tab title="JavaScript">
```javascript
let limit = 50;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 799 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L799

Did you really mean 'messagesRequest'?
.setLimit(limit)
.setSaved(true)
.build();
```

</Tab>

</Tabs>

Saves are private to the logged-in user. Because the rows come from different conversations, use `getConversationId()`, `getReceiverType()` and `getReceiverId()` on each message to route back to the right conversation. See [Save A Message](/sdk/javascript/save-message) for the full feature.

## Hide threaded messages in user/group conversations

Use `hideReplies(true)` to exclude threaded messages from the main conversation. Default is `false`.
Expand All @@ -722,7 +817,7 @@
```typescript
let UID: string = "UID",
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 820 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L820

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setUID(UID)
.setLimit(limit)
Expand All @@ -736,7 +831,7 @@
```javascript
let UID = "UID";
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 834 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L834

Did you really mean 'messagesRequest'?
.setUID(UID)
.setLimit(limit)
.hideReplies(true)
Expand All @@ -749,7 +844,7 @@
```typescript
let GUID: string = "GUID",
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 847 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L847

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setGUID(GUID)
.setLimit(limit)
Expand All @@ -763,7 +858,7 @@
```javascript
let GUID = "GUID";
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 861 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L861

Did you really mean 'messagesRequest'?
.setGUID(GUID)
.setLimit(limit)
.hideReplies(true)
Expand All @@ -782,7 +877,7 @@
```typescript
let UID: string = "UID",
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 880 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L880

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setUID(UID)
.setLimit(limit)
Expand All @@ -796,7 +891,7 @@
```javascript
let UID = "UID";
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 894 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L894

Did you really mean 'messagesRequest'?
.setUID(UID)
.setLimit(limit)
.hideDeletedMessages(true)
Expand All @@ -809,7 +904,7 @@
```typescript
let GUID: string = "GUID",
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 907 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L907

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setGUID(GUID)
.setLimit(limit)
Expand All @@ -823,7 +918,7 @@
```javascript
let GUID = "GUID";
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 921 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L921

Did you really mean 'messagesRequest'?
.setGUID(GUID)
.setLimit(limit)
.hideDeletedMessages(true)
Expand All @@ -842,7 +937,7 @@
```typescript
let UID: string = "UID",
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 940 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L940

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setUID(UID)
.setLimit(limit)
Expand All @@ -856,7 +951,7 @@
```javascript
let UID = "UID";
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 954 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L954

Did you really mean 'messagesRequest'?
.setUID(UID)
.setLimit(limit)
.hideQuotedMessages(true)
Expand All @@ -869,7 +964,7 @@
```typescript
let GUID: string = "GUID",
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 967 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L967

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setGUID(GUID)
.setLimit(limit)
Expand All @@ -883,7 +978,7 @@
```javascript
let GUID = "GUID";
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 981 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L981

Did you really mean 'messagesRequest'?
.setGUID(GUID)
.setLimit(limit)
.hideQuotedMessages(true)
Expand All @@ -902,8 +997,8 @@
```typescript
let UID: string = "UID",
limit: number = 30,
tags: Array<String> = ["starredMessage"],

Check warning on line 1000 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1000

Did you really mean 'starredMessage'?
messagesRequest: CometChat.MessagesRequest =

Check warning on line 1001 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1001

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setUID(UID)
.setLimit(limit)
Expand All @@ -917,8 +1012,8 @@
```javascript
let UID = "UID";
let limit = 30;
let tags = ["starredMessage"];

Check warning on line 1015 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1015

Did you really mean 'starredMessage'?
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 1016 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1016

Did you really mean 'messagesRequest'?
.setUID(UID)
.setLimit(limit)
.setTags(tags)
Expand All @@ -931,8 +1026,8 @@
```typescript
let GUID: string = "GUID",
limit: number = 30,
tags: Array<String> = ["starredMessage"],

Check warning on line 1029 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1029

Did you really mean 'starredMessage'?
messagesRequest: CometChat.MessagesRequest =

Check warning on line 1030 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1030

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setGUID(GUID)
.setLimit(limit)
Expand All @@ -946,8 +1041,8 @@
```javascript
let GUID = "GUID";
let limit = 30;
let tags = ["starredMessage"];

Check warning on line 1044 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1044

Did you really mean 'starredMessage'?
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 1045 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1045

Did you really mean 'messagesRequest'?
.setGUID(GUID)
.setLimit(limit)
.setTags(tags)
Expand All @@ -966,7 +1061,7 @@
```typescript
let UID: string = "UID",
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 1064 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1064

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setGUID(UID)
.setLimit(limit)
Expand All @@ -980,7 +1075,7 @@
```javascript
let UID = "UID";
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 1078 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1078

Did you really mean 'messagesRequest'?
.setUID(UID)
.setLimit(limit)
.withTags(true)
Expand All @@ -993,7 +1088,7 @@
```typescript
let GUID: string = "GUID",
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 1091 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1091

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setGUID(GUID)
.setLimit(limit)
Expand All @@ -1007,7 +1102,7 @@
```javascript
let GUID = "GUID";
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 1105 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1105

Did you really mean 'messagesRequest'?
.setGUID(GUID)
.setLimit(limit)
.withTags(tags)
Expand Down Expand Up @@ -1038,7 +1133,7 @@
```typescript
let UID: string = "UID",
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 1136 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1136

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setGUID(UID)
.setLimit(limit)
Expand All @@ -1052,7 +1147,7 @@
```javascript
let UID = "UID";
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 1150 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1150

Did you really mean 'messagesRequest'?
.setUID(UID)
.setLimit(limit)
.hasLinks(true)
Expand All @@ -1065,7 +1160,7 @@
```typescript
let GUID: string = "GUID",
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 1163 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1163

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setGUID(GUID)
.setLimit(limit)
Expand All @@ -1079,7 +1174,7 @@
```javascript
let GUID = "GUID";
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 1177 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1177

Did you really mean 'messagesRequest'?
.setGUID(GUID)
.setLimit(limit)
.hasLinks(true)
Expand All @@ -1104,7 +1199,7 @@
```typescript
let UID: string = "UID",
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 1202 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1202

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setGUID(UID)
.setLimit(limit)
Expand All @@ -1118,7 +1213,7 @@
```javascript
let UID = "UID";
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 1216 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1216

Did you really mean 'messagesRequest'?
.setUID(UID)
.setLimit(limit)
.hasAttachments(true)
Expand All @@ -1131,7 +1226,7 @@
```typescript
let GUID: string = "GUID",
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 1229 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1229

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setGUID(GUID)
.setLimit(limit)
Expand All @@ -1145,7 +1240,7 @@
```javascript
let GUID = "GUID";
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 1243 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1243

Did you really mean 'messagesRequest'?
.setGUID(GUID)
.setLimit(limit)
.hasAttachments(true)
Expand Down Expand Up @@ -1173,7 +1268,7 @@
```typescript
let UID: string = "UID",
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 1271 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1271

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setGUID(UID)
.setLimit(limit)
Expand All @@ -1187,7 +1282,7 @@
```javascript
let UID = "UID";
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 1285 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1285

Did you really mean 'messagesRequest'?
.setUID(UID)
.setLimit(limit)
.hasReactions(true)
Expand All @@ -1200,7 +1295,7 @@
```typescript
let GUID: string = "GUID",
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 1298 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1298

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setGUID(GUID)
.setLimit(limit)
Expand All @@ -1214,7 +1309,7 @@
```javascript
let GUID = "GUID";
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 1312 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1312

Did you really mean 'messagesRequest'?
.setGUID(GUID)
.setLimit(limit)
.hasReactions(true)
Expand Down Expand Up @@ -1242,7 +1337,7 @@
```typescript
let UID: string = "UID",
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 1340 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1340

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setGUID(UID)
.setLimit(limit)
Expand All @@ -1256,7 +1351,7 @@
```javascript
let UID = "UID";
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 1354 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1354

Did you really mean 'messagesRequest'?
.setUID(UID)
.setLimit(limit)
.hasMentions(true)
Expand All @@ -1269,7 +1364,7 @@
```typescript
let GUID: string = "GUID",
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 1367 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1367

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setGUID(GUID)
.setLimit(limit)
Expand All @@ -1283,7 +1378,7 @@
```javascript
let GUID = "GUID";
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 1381 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1381

Did you really mean 'messagesRequest'?
.setGUID(GUID)
.setLimit(limit)
.hasMentions(true)
Expand All @@ -1298,7 +1393,7 @@

## Messages with particular user mentions

Use `setMentionedUIDs()` with an array of UIDs to fetch messages that mention specific users.

Check warning on line 1396 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1396

Did you really mean 'UIDs'?

<Note>

Expand All @@ -1311,7 +1406,7 @@
```typescript
let UID: string = "UID",
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 1409 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1409

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setGUID(UID)
.setLimit(limit)
Expand All @@ -1325,7 +1420,7 @@
```javascript
let UID = "UID";
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 1423 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1423

Did you really mean 'messagesRequest'?
.setUID(UID)
.setLimit(limit)
.setMentionedUIDs(["UID"])
Expand All @@ -1338,7 +1433,7 @@
```typescript
let GUID: string = "GUID",
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 1436 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1436

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setGUID(GUID)
.setLimit(limit)
Expand All @@ -1352,7 +1447,7 @@
```javascript
let GUID = "GUID";
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 1450 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1450

Did you really mean 'messagesRequest'?
.setGUID(GUID)
.setLimit(limit)
.setMentionedUIDs(["UID"])
Expand Down Expand Up @@ -1380,7 +1475,7 @@
```typescript
let UID: string = "UID",
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 1478 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1478

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setGUID(UID)
.setLimit(limit)
Expand All @@ -1394,7 +1489,7 @@
```javascript
let UID = "UID";
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 1492 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1492

Did you really mean 'messagesRequest'?
.setUID(UID)
.setLimit(limit)
.setAttachmentTypes([CometChat.AttachmentType.IMAGE, CometChat.AttachmentType.VIDEO])
Expand All @@ -1407,7 +1502,7 @@
```typescript
let GUID: string = "GUID",
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 1505 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1505

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setGUID(GUID)
.setLimit(limit)
Expand All @@ -1421,7 +1516,7 @@
```javascript
let GUID = "GUID";
let limit = 30;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 1519 in sdk/javascript/message-filtering.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/javascript/message-filtering.mdx#L1519

Did you really mean 'messagesRequest'?
.setGUID(GUID)
.setLimit(limit)
.setAttachmentTypes([CometChat.AttachmentType.IMAGE, CometChat.AttachmentType.VIDEO])
Expand Down
Loading