Skip to content
Merged
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
13 changes: 13 additions & 0 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -3488,6 +3488,19 @@
"sdk/react-native/reactions"
]
},
{
"group": "Offline Support",
"pages": [
"sdk/react-native/offline-overview",
"sdk/react-native/offline-enable",
"sdk/react-native/offline-cached-data",
"sdk/react-native/offline-send",
"sdk/react-native/offline-sync",
"sdk/react-native/offline-media-caching",
"sdk/react-native/offline-encryption",
"sdk/react-native/offline-reference"
]
},
"sdk/react-native/calling-overview",
{
"group": "Users",
Expand Down
20 changes: 20 additions & 0 deletions sdk/react-native/additional-message-filtering.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

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

Check warning on line 57 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L57

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

Check warning on line 74 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L74

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

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

Check warning on line 83 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L83

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

Check warning on line 103 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L103

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

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

Check warning on line 112 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L112

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

Check warning on line 132 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L132

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

Check warning on line 134 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L134

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

Check warning on line 147 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L147

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

Check warning on line 149 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L149

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

Check warning on line 161 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L161

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

Check warning on line 163 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L163

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

Check warning on line 176 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L176

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

Check warning on line 178 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L178

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

Check warning on line 201 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L201

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

Check warning on line 216 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L216

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

Check warning on line 230 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L230

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

Check warning on line 245 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L245

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

Check warning on line 267 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L267

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

Check warning on line 281 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L281

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

Check warning on line 294 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L294

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

Check warning on line 308 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L308

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

Check warning on line 330 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L330

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

Check warning on line 344 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L344

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

Check warning on line 357 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L357

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

Check warning on line 371 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L371

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

Check warning on line 394 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L394

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

Check warning on line 409 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L409

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

Check warning on line 423 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L423

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

Check warning on line 438 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L438

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

Check warning on line 461 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L461

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

Check warning on line 477 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L477

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

Check warning on line 492 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L492

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

Check warning on line 508 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L508

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

Check warning on line 532 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L532

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

Check warning on line 547 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L547

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

Check warning on line 561 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L561

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

Check warning on line 576 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L576

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

Check warning on line 600 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L600

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

Check warning on line 617 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L617

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

Check warning on line 633 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L633

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

Check warning on line 650 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L650

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

Check warning on line 673 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L673

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

Check warning on line 674 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L674

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

Check warning on line 687 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L687

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

Check warning on line 689 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L689

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

Check warning on line 702 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L702

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

Check warning on line 703 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L703

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

Check warning on line 716 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L716

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

Check warning on line 718 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L718

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

Check warning on line 740 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L740

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

Check warning on line 754 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L754

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

Check warning on line 767 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L767

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

Check warning on line 781 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L781

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

Check warning on line 801 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L801

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

Check warning on line 815 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L815

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

Check warning on line 828 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L828

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

Check warning on line 842 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L842

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

Check warning on line 862 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L862

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

Check warning on line 876 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L876

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

Check warning on line 889 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L889

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

Check warning on line 903 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L903

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

Check warning on line 923 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L923

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

Check warning on line 924 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L924

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

Check warning on line 938 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L938

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

Check warning on line 939 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L939

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

Check warning on line 952 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L952

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

Check warning on line 953 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L953

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

Check warning on line 967 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L967

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

Check warning on line 968 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L968

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

Check warning on line 988 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L988

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

Check warning on line 1002 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1002

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

Check warning on line 1015 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1015

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

Check warning on line 1029 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1029

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

Check warning on line 1061 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1061

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

Check warning on line 1075 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1075

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

Check warning on line 1088 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1088

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

Check warning on line 1102 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1102

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

Check warning on line 1128 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1128

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

Check warning on line 1142 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1142

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

Check warning on line 1155 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1155

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

Check warning on line 1169 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1169

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

Check warning on line 1197 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1197

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

Check warning on line 1211 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1211

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

Check warning on line 1224 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1224

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

Check warning on line 1238 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1238

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

Check warning on line 1266 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1266

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

Check warning on line 1280 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1280

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

Check warning on line 1293 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1293

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

Check warning on line 1307 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1307

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

## Messages with particular user mentions

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

Check warning on line 1322 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1322

Did you really mean 'UIDs'?

<Note>

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

Check warning on line 1335 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1335

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

Check warning on line 1349 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1349

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

Check warning on line 1362 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1362

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

Check warning on line 1376 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1376

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

Check warning on line 1404 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1404

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

Check warning on line 1418 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1418

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

Check warning on line 1431 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1431

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

Check warning on line 1445 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1445

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

Check warning on line 1467 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1467

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

Check warning on line 1481 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1481

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

Check warning on line 1494 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1494

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

Check warning on line 1508 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1508

Did you really mean 'messagesRequest'?
.setGUID(GUID)
.setLimit(limit)
.setPinnedOnly(true)
Expand All @@ -1526,7 +1526,7 @@
<Tab title="TypeScript">
```typescript
let limit: number = 50,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 1529 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1529

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setLimit(limit)
.setSavedOnly(true)
Expand All @@ -1538,7 +1538,7 @@
<Tab title="JavaScript">
```javascript
let limit = 50;
let messagesRequest = new CometChat.MessagesRequestBuilder()

Check warning on line 1541 in sdk/react-native/additional-message-filtering.mdx

View check run for this annotation

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

sdk/react-native/additional-message-filtering.mdx#L1541

Did you really mean 'messagesRequest'?
.setLimit(limit)
.setSavedOnly(true)
.build();
Expand All @@ -1552,6 +1552,26 @@



## Offline Behaviour

With [offline support](/sdk/react-native/offline-cached-data) enabled, a `MessagesRequest` can answer from the on-device cache first and then from the server. Pass a `MessageFetchListener` to `fetchPrevious()` or `fetchNext()` to receive `onCachedMessages` (even when empty) and then `onServerMessages`. Offline, the fetch ends with `onError` with code `FAILED_TO_FETCH` after the cached page.

The cache answers a page **only when every filter on the request is locally computable**. A single server-only filter makes the cached page empty with no error, while the server phase still answers in full.

| Builder method | Offline behaviour |
| --- | --- |
| `setSearchKeyword()` | Server only — cached page is empty |
| `hasLinks()` | Server only — cached page is empty |
| `updatesOnly()` | Server only — cached page is empty |
| `setInteractionGoalCompletedOnly()` | Server only — cached page is empty |
| `setPinnedOnly()` | Pinned store |
| `setSavedOnly()` | Saved store |
| All other filters in this page | Cached |

`setPinnedOnly()` and `setSavedOnly()` are served from separate pinned and saved stores, not the message cache, so the other filters on this page do not apply to a pinned or saved read.

`setMessageId()`, `setTimestamp()`, `setUpdatedAfter()`, `setLimit()`, `setUID()` and `setGUID()` are scope and pagination inputs, not filters, and do not change what the cache can answer. Setting both `setUID()` and `setGUID()` together on a non-thread read (one sender's messages in a group) is answered by the server only.

## Next Steps

<CardGroup cols={2}>
Expand Down
7 changes: 6 additions & 1 deletion sdk/react-native/ai-moderation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
| Key Classes | `BaseMessage`, `CometChatException`, `MediaMessage`, `MessageListener`, `TextMessage` |
| Prerequisites | SDK initialized via [`CometChat.init()`](/sdk/react-native/setup-sdk) and a logged-in user via [`CometChat.login()`](/sdk/react-native/authentication-overview) |
| Primary output | Moderation is applied server-side; `sendMessage()` still resolves to the sent message, which then transitions `PENDING` → `APPROVED` / `DISAPPROVED` |
| Constraints | A disapproved message never reaches recipients — the sender's own promise still resolves. Every `add*Listener()` needs a matching `remove*Listener()` with the same listener ID — unremoved listeners leak and fire after unmount. |

Check warning on line 17 in sdk/react-native/ai-moderation.mdx

View check run for this annotation

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

sdk/react-native/ai-moderation.mdx#L17

Did you really mean 'unmount'?
| Related | [Send a Message](/sdk/react-native/send-message) · [Receive Messages](/sdk/react-native/receive-messages) · [AI Agents](/sdk/react-native/ai-agents) |
| Full reference | [`BaseMessage`](/sdk/reference/messages#basemessage) · [`TextMessage`](/sdk/reference/messages#textmessage) · [`CometChatException`](/sdk/reference/auxiliary#cometchatexception) |

Expand Down Expand Up @@ -66,6 +66,7 @@
participant Moderation

App->>SDK: sendMessage()
SDK-->>App: onMessagePending (offline support on, with a listener)
SDK->>CometChat: Send Message
CometChat->>Moderation: Process Message
CometChat-->>SDK: Message (status: PENDING)
Expand All @@ -78,7 +79,7 @@
| Step | Description |
|------|-------------|
| 1. Send Message | App sends a text, image, or video message |
| 2. Pending Status | Message is sent with `PENDING` moderation status |
| 2. Pending Status | Message is sent with `PENDING` moderation status (`getModerationStatus()`). This is separate from the send status: with offline support on and a `MessageSentListener` passed, `onMessagePending` fires first, before the message reaches the server. |
| 3. AI Processing | Moderation service analyzes the content |
| 4. Result Event | `onMessageModerated` event fires with final status |

Expand All @@ -103,7 +104,7 @@
| Pending | `CometChat.ModerationStatus.PENDING` | Message is being processed by moderation |
| Approved | `CometChat.ModerationStatus.APPROVED` | Message passed moderation and is visible |
| Disapproved | `CometChat.ModerationStatus.DISAPPROVED` | Message violated rules and was blocked |
| Unmoderated | `CometChat.ModerationStatus.UNMODERATED` | Message was not subject to moderation (default) |

Check warning on line 107 in sdk/react-native/ai-moderation.mdx

View check run for this annotation

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

sdk/react-native/ai-moderation.mdx#L107

Did you really mean 'Unmoderated'?

## Implementation

Expand All @@ -111,10 +112,14 @@

When you send a text, image, or video message, check the initial moderation status:

<Note>
With offline support enabled, pass a `MessageSentListener` to `sendMessage()` to queue the message while offline. `onMessagePending` fires first. Offline, `onError` can fire once as a notice that the message is queued, not failed: check the `reason` argument (`null` means queued, a value means a real failure). The moderation status applies once the message reaches the server. See [Send While Offline](/sdk/react-native/offline-send).
</Note>

<Tabs>
<Tab title="TypeScript">
```typescript
const textMessage = new CometChat.TextMessage(

Check warning on line 122 in sdk/react-native/ai-moderation.mdx

View check run for this annotation

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

sdk/react-native/ai-moderation.mdx#L122

Did you really mean 'textMessage'?
receiverUID,
"Hello, how are you?",
CometChat.RECEIVER_TYPE.USER
Expand All @@ -138,7 +143,7 @@
</Tab>
<Tab title="JavaScript">
```javascript
const textMessage = new CometChat.TextMessage(

Check warning on line 146 in sdk/react-native/ai-moderation.mdx

View check run for this annotation

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

sdk/react-native/ai-moderation.mdx#L146

Did you really mean 'textMessage'?
receiverUID,
"Hello, how are you?",
CometChat.RECEIVER_TYPE.USER
Expand Down Expand Up @@ -412,7 +417,7 @@
</Tabs>

<Warning>
Always remove listeners when they're no longer needed (e.g., on component unmount or page navigation). Failing to remove listeners can cause memory leaks and duplicate event handling.

Check warning on line 420 in sdk/react-native/ai-moderation.mdx

View check run for this annotation

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

sdk/react-native/ai-moderation.mdx#L420

Did you really mean 'unmount'?
</Warning>

---
Expand Down
11 changes: 11 additions & 0 deletions sdk/react-native/block-users.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
| Key Classes | `BlockedUsersRequest`, `BlockedUsersRequestBuilder`, `CometChatException`, `User` |
| Prerequisites | SDK initialized via [`CometChat.init()`](/sdk/react-native/setup-sdk) and a logged-in user via [`CometChat.login()`](/sdk/react-native/authentication-overview) |
| Primary output | `Promise<Object>` — a map of UID → `"success"` / failure reason; rejects with `CometChatException` |
| Constraints | Both methods take an **array** of UIDs, never a bare string. Blocking is one-directional: the blocked user is not told. |

Check warning on line 17 in sdk/react-native/block-users.mdx

View check run for this annotation

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

sdk/react-native/block-users.mdx#L17

Did you really mean 'UIDs'?
| Related | [Retrieve Users](/sdk/react-native/retrieve-users) · [User Management](/sdk/react-native/user-management) · [User Presence](/sdk/react-native/user-presence) |
| Full reference | [`User`](/sdk/reference/entities#user) · [`CometChatException`](/sdk/reference/auxiliary#cometchatexception) |

Expand All @@ -39,12 +39,12 @@

## Block Users

Block users to prevent all communication with them. Use `blockUsers()` with an array of UIDs.

Check warning on line 42 in sdk/react-native/block-users.mdx

View check run for this annotation

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

sdk/react-native/block-users.mdx#L42

Did you really mean 'UIDs'?

<Tabs>
<Tab title="TypeScript">
```typescript
const usersList: String[] = ["UID1", "UID2", "UID3"];

Check warning on line 47 in sdk/react-native/block-users.mdx

View check run for this annotation

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

sdk/react-native/block-users.mdx#L47

Did you really mean 'usersList'?

CometChat.blockUsers(usersList).then(
(list: Object) => {
Expand Down Expand Up @@ -75,7 +75,7 @@
const usersList = ["UID1", "UID2", "UID3"];

try {
const list = await CometChat.blockUsers(usersList);

Check warning on line 78 in sdk/react-native/block-users.mdx

View check run for this annotation

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

sdk/react-native/block-users.mdx#L78

Did you really mean 'usersList'?
console.log("users list blocked", { list });
} catch (error) {
console.log("Blocking user fails with error", error);
Expand All @@ -85,11 +85,11 @@

</Tabs>

Returns an object with UIDs as keys and `"success"` or `"fail"` as values. Each [`User`](/sdk/reference/entities#user) in the request is processed independently.

Check warning on line 88 in sdk/react-native/block-users.mdx

View check run for this annotation

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

sdk/react-native/block-users.mdx#L88

Did you really mean 'UIDs'?

## Unblock Users

Unblock previously blocked users using `unblockUsers()` with an array of UIDs.

Check warning on line 92 in sdk/react-native/block-users.mdx

View check run for this annotation

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

sdk/react-native/block-users.mdx#L92

Did you really mean 'UIDs'?

<Tabs>
<Tab title="TypeScript">
Expand Down Expand Up @@ -135,7 +135,7 @@

</Tabs>

Returns an object with UIDs as keys and `"success"` or `"fail"` as values. Each [`User`](/sdk/reference/entities#user) in the request is processed independently.

Check warning on line 138 in sdk/react-native/block-users.mdx

View check run for this annotation

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

sdk/react-native/block-users.mdx#L138

Did you really mean 'UIDs'?

## Get List of Blocked Users

Expand Down Expand Up @@ -170,13 +170,14 @@

### Set Search Keyword

<Note>With offline support on, this filter is answered by the server only; the cached page is empty.</Note>
Filters blocked users by a search string.

<Tabs>
<Tab title="TypeScript">
```typescript
let limit: number = 30;
let searchKeyword: string = "super";

Check warning on line 180 in sdk/react-native/block-users.mdx

View check run for this annotation

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

sdk/react-native/block-users.mdx#L180

Did you really mean 'searchKeyword'?
let blockedUsersRequest: CometChat.BlockedUsersRequest = new CometChat.BlockedUsersRequestBuilder()
.setLimit(limit)
.setSearchKeyword(searchKeyword)
Expand All @@ -188,7 +189,7 @@
<Tab title="JavaScript">
```javascript
let limit = 30;
let searchKeyword = "super";

Check warning on line 192 in sdk/react-native/block-users.mdx

View check run for this annotation

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

sdk/react-native/block-users.mdx#L192

Did you really mean 'searchKeyword'?
let blockedUsersRequest = new CometChat.BlockedUsersRequestBuilder()
.setLimit(limit)
.setSearchKeyword(searchKeyword)
Expand Down Expand Up @@ -241,7 +242,7 @@
.build();

blockedUsersRequest.fetchNext().then(
(userList: CometChat.User[]) => {

Check warning on line 245 in sdk/react-native/block-users.mdx

View check run for this annotation

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

sdk/react-native/block-users.mdx#L245

Did you really mean 'userList'?
console.log("Blocked user list received:", userList);
}, (error: CometChat.CometChatException) => {
console.log("Blocked user list fetching failed with error:", error);
Expand Down Expand Up @@ -279,6 +280,16 @@
| blockedByMe | `getBlockedByMe()` | `boolean` | Whether the logged-in user has blocked this user |
| hasBlockedMe | `getHasBlockedMe()` | `boolean` | Whether this user has blocked the logged-in user |

## Offline Behaviour

With [offline support](/sdk/react-native/offline-cached-data) enabled, passing a `UserFetchListener` to `BlockedUsersRequest.fetchNext()` calls `onCachedUsers` first from the SDK's own blocked-users list. The SDK refreshes that list when the user logs in and after a reconnect sync once the last refresh is more than 12 hours old, and it updates the list when you call `blockUsers()` or `unblockUsers()`. Then `onServerUsers` delivers the live page to reconcile by `uid`; the server page is not saved to the device. The cached page is empty when no users are blocked or when `setSearchKeyword` is set. Offline, the read ends with `onError` (`FAILED_TO_FETCH`) after the cached page, and the Promise rejects. See [Show Cached Data](/sdk/react-native/offline-cached-data).

| Builder method | Offline |
|---|---|
| `setLimit` | Cached |
| `setDirection` | Cached. When no direction is set, the cached page lists only the users you blocked. |
| `setSearchKeyword` | Server only, cached page is empty |

---

## Next Steps
Expand Down
4 changes: 4 additions & 0 deletions sdk/react-native/campaigns.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
{ "type": "button", "id": "btn_1", "label": "Shop Now", "action": { "type": "openUrl", "url": "https://..." } }
],
"style": { "background": {"light": "#FFFFFF", "dark": "#1E1E1E"}, "borderRadius": 12, "padding": 16 },
"fallbackText": "Flash Sale! Shop Now: https://..."

Check warning on line 50 in sdk/react-native/campaigns.mdx

View check run for this annotation

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

sdk/react-native/campaigns.mdx#L50

Did you really mean 'fallbackText'?
}
```

Expand Down Expand Up @@ -144,6 +144,10 @@
| `getReceiverType()` | string | Receiver type |
| `getIsRead()` | boolean | Whether the item has been read |

## Offline Behaviour

With offline support enabled, pass a `FeedItemFetchListener` (alias `NotificationFeedFetchListener`) to `fetchNext()`. It first delivers `onCachedNotificationFeedItems` from the device, then `onServerNotificationFeedItems` with the live page to reconcile by item id. Offline, the read ends with `onError` (code `FAILED_TO_FETCH`) after the cached page. See [Show Cached Data](/sdk/react-native/offline-cached-data).

---

## Retrieve Notification Categories
Expand All @@ -153,7 +157,7 @@
<Tabs>
<Tab title="JavaScript">
```javascript
const categoriesRequest = new CometChat.NotificationCategoriesRequestBuilder()

Check warning on line 160 in sdk/react-native/campaigns.mdx

View check run for this annotation

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

sdk/react-native/campaigns.mdx#L160

Did you really mean 'categoriesRequest'?
.setLimit(50)
.build();

Expand Down Expand Up @@ -389,7 +393,7 @@
<Tabs>
<Tab title="JavaScript">
```javascript
const pushNotification = new CometChat.PushNotification(pushPayloadJson);

Check warning on line 396 in sdk/react-native/campaigns.mdx

View check run for this annotation

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

sdk/react-native/campaigns.mdx#L396

Did you really mean 'pushNotification'?

CometChat.markPushNotificationDelivered(pushNotification).then(
() => { /* Success */ },
Expand Down Expand Up @@ -485,10 +489,10 @@
// Open URL in browser
break;
case "chatWithUser":
// Navigate to chat with event.params.uid

Check warning on line 492 in sdk/react-native/campaigns.mdx

View check run for this annotation

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

sdk/react-native/campaigns.mdx#L492

Did you really mean 'uid'?
break;
case "chatWithGroup":
// Navigate to group chat with event.params.guid

Check warning on line 495 in sdk/react-native/campaigns.mdx

View check run for this annotation

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

sdk/react-native/campaigns.mdx#L495

Did you really mean 'guid'?
break;
}
}}
Expand All @@ -509,15 +513,15 @@

| Action Type | Parameters | Description |
| --- | --- | --- |
| `openUrl` | url, openIn | Open a URL in browser or webview |

Check warning on line 516 in sdk/react-native/campaigns.mdx

View check run for this annotation

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

sdk/react-native/campaigns.mdx#L516

Did you really mean 'openIn'?

Check warning on line 516 in sdk/react-native/campaigns.mdx

View check run for this annotation

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

sdk/react-native/campaigns.mdx#L516

Did you really mean 'webview'?
| `chatWithUser` | uid | Navigate to 1:1 chat |
| `chatWithGroup` | guid | Navigate to group chat |
| `sendMessage` | text, receiverUid, receiverGuid | Send a text message |

Check warning on line 519 in sdk/react-native/campaigns.mdx

View check run for this annotation

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

sdk/react-native/campaigns.mdx#L519

Did you really mean 'receiverUid'?

Check warning on line 519 in sdk/react-native/campaigns.mdx

View check run for this annotation

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

sdk/react-native/campaigns.mdx#L519

Did you really mean 'receiverGuid'?
| `copyToClipboard` | value | Copy text to clipboard |
| `downloadFile` | url, filename | Download a file |
| `initiateCall` | callType (audio/video), uid, guid | Start a call |

Check warning on line 522 in sdk/react-native/campaigns.mdx

View check run for this annotation

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

sdk/react-native/campaigns.mdx#L522

Did you really mean 'callType'?

Check warning on line 522 in sdk/react-native/campaigns.mdx

View check run for this annotation

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

sdk/react-native/campaigns.mdx#L522

Did you really mean 'uid'?

Check warning on line 522 in sdk/react-native/campaigns.mdx

View check run for this annotation

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

sdk/react-native/campaigns.mdx#L522

Did you really mean 'guid'?
| `apiCall` | url, method, headers, body | Make an HTTP request |
| `customCallback` | callbackId, payload | App-specific logic |

Check warning on line 524 in sdk/react-native/campaigns.mdx

View check run for this annotation

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

sdk/react-native/campaigns.mdx#L524

Did you really mean 'callbackId'?

---

Expand Down
4 changes: 4 additions & 0 deletions sdk/react-native/connection-status.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
| Key Classes | `ConnectionListener` |
| Prerequisites | SDK initialized via [`CometChat.init()`](/sdk/react-native/setup-sdk) and a logged-in user via [`CometChat.login()`](/sdk/react-native/authentication-overview) |
| Primary output | `getConnectionStatus()` returns a `string` **synchronously** (not a Promise); `addConnectionListener()` returns `void` |
| Constraints | `getConnectionStatus()` is synchronous — do not `await` it. Every `add*Listener()` needs a matching `remove*Listener()` with the same listener ID — unremoved listeners leak and fire after unmount. |

Check warning on line 16 in sdk/react-native/connection-status.mdx

View check run for this annotation

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

sdk/react-native/connection-status.mdx#L16

Did you really mean 'unmount'?
| Related | [Setup SDK](/sdk/react-native/setup-sdk) · [Managing WebSockets Manually](/sdk/react-native/managing-web-sockets-connections-manually) · [Real-Time Listeners](/sdk/react-native/real-time-listeners) |
| Full reference | [`CometChatException`](/sdk/reference/auxiliary#cometchatexception) |

Expand All @@ -25,7 +25,7 @@
// Listen for connection changes
CometChat.addConnectionListener("LISTENER_ID", new CometChat.ConnectionListener({
onConnected: () => console.log("Connected"),
inConnecting: () => console.log("Connecting..."),

Check warning on line 28 in sdk/react-native/connection-status.mdx

View check run for this annotation

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

sdk/react-native/connection-status.mdx#L28

Did you really mean 'inConnecting'?
onDisconnected: () => console.log("Disconnected")
}));

Expand All @@ -39,6 +39,10 @@

When the connection drops, the SDK automatically attempts to reconnect, cycling through `disconnected` → `connecting` → `connected`.

<Note>
With offline support enabled, your app keeps working without a connection: cached chats are shown instantly, and messages you send with a `MessageSentListener` are queued and delivered automatically on reconnect. See [Show Cached Data](/sdk/react-native/offline-cached-data) and [Send While Offline](/sdk/react-native/offline-send).
</Note>

## Connection States

| Value | Callback | Description |
Expand All @@ -55,14 +59,14 @@
<Tabs>
<Tab title="TypeScript">
```typescript
const connectionStatus: string = CometChat.getConnectionStatus();

Check warning on line 62 in sdk/react-native/connection-status.mdx

View check run for this annotation

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

sdk/react-native/connection-status.mdx#L62

Did you really mean 'connectionStatus'?
```

</Tab>

<Tab title="JavaScript">
```javascript
const connectionStatus = CometChat.getConnectionStatus();

Check warning on line 69 in sdk/react-native/connection-status.mdx

View check run for this annotation

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

sdk/react-native/connection-status.mdx#L69

Did you really mean 'connectionStatus'?
```

</Tab>
Expand All @@ -83,10 +87,10 @@
onConnected: () => {
console.log("ConnectionListener => On Connected");
},
inConnecting: () => {

Check warning on line 90 in sdk/react-native/connection-status.mdx

View check run for this annotation

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

sdk/react-native/connection-status.mdx#L90

Did you really mean 'inConnecting'?
console.log("ConnectionListener => In connecting");
},
onDisconnected: () => {

Check warning on line 93 in sdk/react-native/connection-status.mdx

View check run for this annotation

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

sdk/react-native/connection-status.mdx#L93

Did you really mean 'onDisconnected'?
console.log("ConnectionListener => On Disconnected");
},
onFeatureThrottled: () => {
Expand All @@ -113,7 +117,7 @@
inConnecting: () => {
console.log("ConnectionListener => In connecting");
},
onDisconnected: () => {

Check warning on line 120 in sdk/react-native/connection-status.mdx

View check run for this annotation

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

sdk/react-native/connection-status.mdx#L120

Did you really mean 'onDisconnected'?
console.log("ConnectionListener => On Disconnected");
},
onFeatureThrottled: () => {
Expand All @@ -131,7 +135,7 @@
</Tabs>

<Warning>
Always remove connection listeners when they're no longer needed (e.g., on component unmount). Failing to remove listeners can cause memory leaks and duplicate event handling.

Check warning on line 138 in sdk/react-native/connection-status.mdx

View check run for this annotation

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

sdk/react-native/connection-status.mdx#L138

Did you really mean 'unmount'?
</Warning>

---
Expand Down
4 changes: 4 additions & 0 deletions sdk/react-native/delete-group.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ This operation is irreversible. Deleted groups and their messages cannot be reco

## Delete a Group

<Note>
Deleting a group needs a connection. With offline support enabled, `deleteGroup()` is **not** queued for later. After it succeeds, the group's conversation and cached messages leave the on-device cache at the next sync, once the server no longer lists the group. Any messages still queued to it are then reported as failed with reason `DISCARDED`. See [Send While Offline](/sdk/react-native/offline-send).
</Note>

Use `deleteGroup()` with the group's GUID.

<Tabs>
Expand Down
4 changes: 4 additions & 0 deletions sdk/react-native/delete-message.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,14 @@

Use `deleteMessage()` with the message ID.

<Note>
Deleting a message needs a connection. With offline support enabled, `deleteMessage()` is not queued for later. After the Promise resolves, the deletion is applied to the message in the on-device cache if it is already cached; it never adds a new message. See [Send While Offline](/sdk/react-native/offline-send).
</Note>

<Tabs>
<Tab title="TypeScript">
```typescript
let messageId: number = 1;

Check warning on line 62 in sdk/react-native/delete-message.mdx

View check run for this annotation

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

sdk/react-native/delete-message.mdx#L62

Did you really mean 'messageId'?

CometChat.deleteMessage(messageId).then(
(message: CometChat.BaseMessage) => {
Expand Down Expand Up @@ -96,7 +100,7 @@

</Tabs>

The deleted message object is returned with `deletedAt` (timestamp) and `deletedBy` (UID of deleter) fields set.

Check warning on line 103 in sdk/react-native/delete-message.mdx

View check run for this annotation

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

sdk/react-native/delete-message.mdx#L103

Did you really mean 'deleter'?

The `deleteMessage()` method returns a [`BaseMessage`](/sdk/reference/messages#basemessage) object.

Expand All @@ -104,8 +108,8 @@

| Field | Getter | Return Type | Description |
|-------|--------|-------------|-------------|
| deletedAt | `getDeletedAt()` | `number` | Timestamp when the message was deleted |

Check warning on line 111 in sdk/react-native/delete-message.mdx

View check run for this annotation

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

sdk/react-native/delete-message.mdx#L111

Did you really mean 'deletedAt'?
| deletedBy | `getDeletedBy()` | `string` | UID of the user who deleted the message |

Check warning on line 112 in sdk/react-native/delete-message.mdx

View check run for this annotation

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

sdk/react-native/delete-message.mdx#L112

Did you really mean 'deletedBy'?

Message deletion in CometChat is controlled by -

Expand Down Expand Up @@ -161,8 +165,8 @@

| Field | Getter | Return Type | Description |
|-------|--------|-------------|-------------|
| deletedAt | `getDeletedAt()` | `number` | Timestamp when the message was deleted |

Check warning on line 168 in sdk/react-native/delete-message.mdx

View check run for this annotation

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

sdk/react-native/delete-message.mdx#L168

Did you really mean 'deletedAt'?
| deletedBy | `getDeletedBy()` | `string` | UID of the user who deleted the message |

Check warning on line 169 in sdk/react-native/delete-message.mdx

View check run for this annotation

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

sdk/react-native/delete-message.mdx#L169

Did you really mean 'deletedBy'?

## Missed Message Delete Events

Expand Down
4 changes: 4 additions & 0 deletions sdk/react-native/edit-message.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@

Use `editMessage()` with a [`TextMessage`](/sdk/reference/messages#textmessage) or [`CustomMessage`](/sdk/reference/messages#custommessage) object. Set the message ID using `setId()`.

<Note>
Editing a message needs a connection. With offline support enabled, `editMessage()` is not queued for later. After the Promise resolves, the edit is applied to the message in the on-device cache if it is already cached; it never adds a new message. See [Send While Offline](/sdk/react-native/offline-send).
</Note>

### Add/Update Tags

Use `setTags()` to update tags when editing. New tags replace existing ones.
Expand Down Expand Up @@ -96,10 +100,10 @@
<Tab title="TypeScript">
```typescript
let receiverID: string = "RECEIVER_UID";
let messageText: string = "Hello world!";

Check warning on line 103 in sdk/react-native/edit-message.mdx

View check run for this annotation

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

sdk/react-native/edit-message.mdx#L103

Did you really mean 'messageText'?
let receiverType: string = CometChat.RECEIVER_TYPE.USER;

Check warning on line 104 in sdk/react-native/edit-message.mdx

View check run for this annotation

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

sdk/react-native/edit-message.mdx#L104

Did you really mean 'receiverType'?
let messageId: number = 1;

Check warning on line 105 in sdk/react-native/edit-message.mdx

View check run for this annotation

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

sdk/react-native/edit-message.mdx#L105

Did you really mean 'messageId'?
let textMessage: CometChat.TextMessage = new CometChat.TextMessage(receiverID, messageText, receiverType);

Check warning on line 106 in sdk/react-native/edit-message.mdx

View check run for this annotation

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

sdk/react-native/edit-message.mdx#L106

Did you really mean 'textMessage'?

Check warning on line 106 in sdk/react-native/edit-message.mdx

View check run for this annotation

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

sdk/react-native/edit-message.mdx#L106

Did you really mean 'messageText'?

textMessage.setId(messageId);

Expand Down Expand Up @@ -162,8 +166,8 @@

| Field | Getter | Return Type | Description |
|-------|--------|-------------|-------------|
| editedAt | `getEditedAt()` | `number` | Timestamp when the message was edited |

Check warning on line 169 in sdk/react-native/edit-message.mdx

View check run for this annotation

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

sdk/react-native/edit-message.mdx#L169

Did you really mean 'editedAt'?
| editedBy | `getEditedBy()` | `string` | UID of the user who edited the message |

Check warning on line 170 in sdk/react-native/edit-message.mdx

View check run for this annotation

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

sdk/react-native/edit-message.mdx#L170

Did you really mean 'editedBy'?

By default, CometChat allows certain users to edit a message.

Expand Down Expand Up @@ -216,7 +220,7 @@
</Tabs>

<Warning>
Always remove message listeners when they're no longer needed (e.g., on component unmount or page navigation). Failing to remove listeners can cause memory leaks and duplicate event handling.

Check warning on line 223 in sdk/react-native/edit-message.mdx

View check run for this annotation

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

sdk/react-native/edit-message.mdx#L223

Did you really mean 'unmount'?

```javascript
CometChat.removeMessageListener("UNIQUE_LISTENER_ID");
Expand All @@ -229,8 +233,8 @@

| Field | Getter | Return Type | Description |
|-------|--------|-------------|-------------|
| editedAt | `getEditedAt()` | `number` | Timestamp when the message was edited |

Check warning on line 236 in sdk/react-native/edit-message.mdx

View check run for this annotation

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

sdk/react-native/edit-message.mdx#L236

Did you really mean 'editedAt'?
| editedBy | `getEditedBy()` | `string` | UID of the user who edited the message |

Check warning on line 237 in sdk/react-native/edit-message.mdx

View check run for this annotation

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

sdk/react-native/edit-message.mdx#L237

Did you really mean 'editedBy'?

## Missed Message Edit Events

Expand Down
45 changes: 45 additions & 0 deletions sdk/react-native/group-kick-ban-members.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Ban Or Kick Member From A Group"
sidebarTitle: "Kick & Ban Members"
description: "Learn how to kick, ban, and unban group members, fetch banned member lists, and receive real-time events using the CometChat React Native SDK."

Check warning on line 4 in sdk/react-native/group-kick-ban-members.mdx

View check run for this annotation

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

sdk/react-native/group-kick-ban-members.mdx#L4

Did you really mean 'unban'?
---

<Accordion title="AI Integration Quick Reference">
Expand All @@ -14,7 +14,7 @@
| Key Classes | `Action`, `BannedMembersRequest`, `BannedMembersRequestBuilder`, `CometChatException`, `Group`, `GroupListener` |
| Prerequisites | SDK initialized via [`CometChat.init()`](/sdk/react-native/setup-sdk) and a logged-in user via [`CometChat.login()`](/sdk/react-native/authentication-overview) |
| Primary output | `Promise<boolean>` — `true` on success; rejects with `CometChatException` |
| Constraints | Kick removes but allows rejoining; ban blocks rejoining until `unbanGroupMember()`. Banned members need `BannedMembersRequest` to enumerate, not `GroupMembersRequest`. Every `add*Listener()` needs a matching `remove*Listener()` with the same listener ID — unremoved listeners leak and fire after unmount. |

Check warning on line 17 in sdk/react-native/group-kick-ban-members.mdx

View check run for this annotation

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

sdk/react-native/group-kick-ban-members.mdx#L17

Did you really mean 'unmount'?
| Related | [Add Members](/sdk/react-native/group-add-members) · [Change Member Scope](/sdk/react-native/group-change-member-scope) · [Retrieve Group Members](/sdk/react-native/retrieve-group-members) |
| Full reference | [`GroupMember`](/sdk/reference/entities#groupmember) · [`Group`](/sdk/reference/entities#group) · [`CometChatException`](/sdk/reference/auxiliary#cometchatexception) |

Expand Down Expand Up @@ -138,9 +138,9 @@

On success, the method resolves with a `boolean` value (`true`) confirming the operation.

## Unban a Group Member

Check warning on line 141 in sdk/react-native/group-kick-ban-members.mdx

View check run for this annotation

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

sdk/react-native/group-kick-ban-members.mdx#L141

Did you really mean 'Unban'?

Admins or Moderators can unban a previously banned member using `unbanGroupMember()`.

Check warning on line 143 in sdk/react-native/group-kick-ban-members.mdx

View check run for this annotation

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

sdk/react-native/group-kick-ban-members.mdx#L143

Did you really mean 'unban'?

<Tabs>
<Tab title="TypeScript">
Expand Down Expand Up @@ -225,12 +225,14 @@

Filters banned members by a search string.

<Note>With offline support on, this filter is answered by the server only; the cached page is empty.</Note>

<Tabs>
<Tab title="TypeScript">
```typescript
let GUID: string = "GUID";
let limit: number = 30;
let searchKeyword: string = "super";

Check warning on line 235 in sdk/react-native/group-kick-ban-members.mdx

View check run for this annotation

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

sdk/react-native/group-kick-ban-members.mdx#L235

Did you really mean 'searchKeyword'?
let bannedGroupMembersRequest: CometChat.BannedMembersRequest = new CometChat.BannedMembersRequestBuilder(GUID)
.setLimit(limit)
.setSearchKeyword(searchKeyword)
Expand All @@ -243,7 +245,7 @@
```javascript
let GUID = "GUID";
let limit = 30;
let searchKeyword = "super";

Check warning on line 248 in sdk/react-native/group-kick-ban-members.mdx

View check run for this annotation

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

sdk/react-native/group-kick-ban-members.mdx#L248

Did you really mean 'searchKeyword'?
let bannedGroupMembersRequest = new CometChat.BannedMembersRequestBuilder(GUID)
.setLimit(limit)
.setSearchKeyword(searchKeyword)
Expand All @@ -254,6 +256,39 @@

</Tabs>

### Set Scopes

Filters banned members by one or more scopes (`admin`, `moderator`, `participant`).

<Tabs>
<Tab title="TypeScript">
```typescript
let GUID: string = "GUID";
let limit: number = 30;
let scopes: Array<String> = ["admin", "moderator"];
let bannedGroupMembersRequest: CometChat.BannedMembersRequest = new CometChat.BannedMembersRequestBuilder(GUID)
.setLimit(limit)
.setScopes(scopes)
.build();
```

</Tab>

<Tab title="JavaScript">
```javascript
let GUID = "GUID";
let limit = 30;
let scopes = ["admin", "moderator"];
let bannedGroupMembersRequest = new CometChat.BannedMembersRequestBuilder(GUID)
.setLimit(limit)
.setScopes(scopes)
.build();
```

</Tab>

</Tabs>

Once configured, call `build()` to create the request, then `fetchNext()` to retrieve banned members.

<Tabs>
Expand All @@ -266,7 +301,7 @@
.build();

bannedGroupMembersRequest.fetchNext().then(
(bannedMembers: CometChat.GroupMember[]) => {

Check warning on line 304 in sdk/react-native/group-kick-ban-members.mdx

View check run for this annotation

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

sdk/react-native/group-kick-ban-members.mdx#L304

Did you really mean 'bannedMembers'?
console.log("Banned Group Member list fetched successfully:", bannedMembers);
}, (error: CometChat.CometChatException) => {
console.log("Banned Group Member list fetching failed with exception:", error);
Expand Down Expand Up @@ -297,6 +332,16 @@

The `fetchNext()` method returns an array of [`GroupMember`](/sdk/reference/entities#groupmember) objects representing the banned members of the group.

## Offline Behaviour

With [offline support](/sdk/react-native/offline-cached-data) enabled, passing a `BannedGroupMemberFetchListener` to `BannedMembersRequest.fetchNext()` calls `onCachedBannedGroupMembers` first with the pages the server last returned for this exact request, replayed from the device (empty when nothing was recorded). Then `onServerBannedGroupMembers` delivers the live page to reconcile by `uid`. Offline, the read ends with `onError` (`FAILED_TO_FETCH`) after the cached page, and the Promise rejects. A request that uses a server-only filter records nothing, so its cached page is always empty. See [Show Cached Data](/sdk/react-native/offline-cached-data).

| Builder method | Offline |
|---|---|
| `setLimit` | Cached |
| `setScopes` | Cached |
| `setSearchKeyword` | Server only, cached page is empty |

## Real-Time Kick/Ban/Unban Events

Implement these `GroupListener` methods to receive real-time notifications:
Expand All @@ -318,10 +363,10 @@
onGroupMemberKicked: (message: CometChat.Action, kickedUser: CometChat.User, kickedBy: CometChat.User, kickedFrom: CometChat.Group) => {
console.log("User kicked", { message, kickedUser, kickedBy, kickedFrom });
},
onGroupMemberBanned: (message: CometChat.Action, bannedUser: CometChat.User, bannedBy: CometChat.User, bannedFrom: CometChat.Group) => {

Check warning on line 366 in sdk/react-native/group-kick-ban-members.mdx

View check run for this annotation

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

sdk/react-native/group-kick-ban-members.mdx#L366

Did you really mean 'bannedUser'?

Check warning on line 366 in sdk/react-native/group-kick-ban-members.mdx

View check run for this annotation

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

sdk/react-native/group-kick-ban-members.mdx#L366

Did you really mean 'bannedBy'?

Check warning on line 366 in sdk/react-native/group-kick-ban-members.mdx

View check run for this annotation

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

sdk/react-native/group-kick-ban-members.mdx#L366

Did you really mean 'bannedFrom'?
console.log("User banned", { message, bannedUser, bannedBy, bannedFrom });
},
onGroupMemberUnbanned: (message: CometChat.Action, unbannedUser: CometChat.User, unbannedBy: CometChat.User, unbannedFrom: CometChat.Group) => {

Check warning on line 369 in sdk/react-native/group-kick-ban-members.mdx

View check run for this annotation

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

sdk/react-native/group-kick-ban-members.mdx#L369

Did you really mean 'unbannedUser'?

Check warning on line 369 in sdk/react-native/group-kick-ban-members.mdx

View check run for this annotation

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

sdk/react-native/group-kick-ban-members.mdx#L369

Did you really mean 'unbannedBy'?

Check warning on line 369 in sdk/react-native/group-kick-ban-members.mdx

View check run for this annotation

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

sdk/react-native/group-kick-ban-members.mdx#L369

Did you really mean 'unbannedFrom'?
console.log("User unbanned", { message, unbannedUser, unbannedBy, unbannedFrom });
}
})
Expand Down Expand Up @@ -355,7 +400,7 @@
</Tabs>

<Warning>
Always remove group listeners when they're no longer needed (e.g., on component unmount or page navigation). Failing to remove listeners can cause memory leaks and duplicate event handling.

Check warning on line 403 in sdk/react-native/group-kick-ban-members.mdx

View check run for this annotation

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

sdk/react-native/group-kick-ban-members.mdx#L403

Did you really mean 'unmount'?

```javascript
CometChat.removeGroupListener("UNIQUE_LISTENER_ID");
Expand Down
4 changes: 4 additions & 0 deletions sdk/react-native/leave-group.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
| Key Classes | `Action`, `CometChatException`, `Group`, `GroupListener`, `User` |
| Prerequisites | SDK initialized via [`CometChat.init()`](/sdk/react-native/setup-sdk) and a logged-in user via [`CometChat.login()`](/sdk/react-native/authentication-overview) |
| Primary output | `Promise<boolean>` — `true` on success; rejects with `CometChatException` |
| Constraints | The owner cannot leave without transferring ownership first. Every `add*Listener()` needs a matching `remove*Listener()` with the same listener ID — unremoved listeners leak and fire after unmount. |

Check warning on line 17 in sdk/react-native/leave-group.mdx

View check run for this annotation

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

sdk/react-native/leave-group.mdx#L17

Did you really mean 'unmount'?
| Related | [Join a Group](/sdk/react-native/join-group) · [Transfer Ownership](/sdk/react-native/transfer-group-ownership) · [Delete a Group](/sdk/react-native/delete-group) |
| Full reference | [`Group`](/sdk/reference/entities#group) · [`CometChatException`](/sdk/reference/auxiliary#cometchatexception) |

Expand All @@ -39,6 +39,10 @@

## Leave a Group

<Note>
With offline support enabled, leaving a group clears that group's conversation and cached messages from the on-device cache. Any messages still queued to it are dropped and reported as failed with reason `DISCARDED`. See [Send While Offline](/sdk/react-native/offline-send).
</Note>

Use `leaveGroup()` to leave a group.

<Tabs>
Expand All @@ -47,7 +51,7 @@
const GUID: string = "GUID";

CometChat.leaveGroup(GUID).then(
(hasLeft: boolean) => {

Check warning on line 54 in sdk/react-native/leave-group.mdx

View check run for this annotation

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

sdk/react-native/leave-group.mdx#L54

Did you really mean 'hasLeft'?
console.log("Group left successfully:", hasLeft);
}, (error: CometChat.CometChatException) => {
console.log("Group leaving failed with exception:", error);
Expand Down Expand Up @@ -118,7 +122,7 @@
</Tabs>

<Warning>
Always remove group listeners when they're no longer needed (e.g., on component unmount or page navigation). Failing to remove listeners can cause memory leaks and duplicate event handling.

Check warning on line 125 in sdk/react-native/leave-group.mdx

View check run for this annotation

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

sdk/react-native/leave-group.mdx#L125

Did you really mean 'unmount'?

```javascript
CometChat.removeGroupListener("UNIQUE_LISTENER_ID");
Expand Down
6 changes: 6 additions & 0 deletions sdk/react-native/mentions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
<Tab title="TypeScript (User)">
```typescript
let receiverID: string = "UID";
let messageText: string = "Hello <@uid:cometchat-uid-1>";

Check warning on line 52 in sdk/react-native/mentions.mdx

View check run for this annotation

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

sdk/react-native/mentions.mdx#L52

Did you really mean 'messageText'?
let receiverType: string = CometChat.RECEIVER_TYPE.USER;

Check warning on line 53 in sdk/react-native/mentions.mdx

View check run for this annotation

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

sdk/react-native/mentions.mdx#L53

Did you really mean 'receiverType'?
let textMessage: CometChat.TextMessage = new CometChat.TextMessage(receiverID, messageText, receiverType);

Check warning on line 54 in sdk/react-native/mentions.mdx

View check run for this annotation

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

sdk/react-native/mentions.mdx#L54

Did you really mean 'textMessage'?

Check warning on line 54 in sdk/react-native/mentions.mdx

View check run for this annotation

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

sdk/react-native/mentions.mdx#L54

Did you really mean 'messageText'?

CometChat.sendMessage(textMessage).then(
(message: CometChat.TextMessage) => {
Expand Down Expand Up @@ -88,12 +88,12 @@
<Tab title="TypeScript (Group)">
```typescript
let receiverID: string = "GUID";
let messageText: string = "Hello <@uid:cometchat-uid-1>";

Check warning on line 91 in sdk/react-native/mentions.mdx

View check run for this annotation

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

sdk/react-native/mentions.mdx#L91

Did you really mean 'messageText'?
let receiverType: string = CometChat.RECEIVER_TYPE.GROUP;

Check warning on line 92 in sdk/react-native/mentions.mdx

View check run for this annotation

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

sdk/react-native/mentions.mdx#L92

Did you really mean 'receiverType'?
let textMessage: CometChat.TextMessage = new CometChat.TextMessage(

Check warning on line 93 in sdk/react-native/mentions.mdx

View check run for this annotation

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

sdk/react-native/mentions.mdx#L93

Did you really mean 'textMessage'?
receiverID,
messageText,

Check warning on line 95 in sdk/react-native/mentions.mdx

View check run for this annotation

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

sdk/react-native/mentions.mdx#L95

Did you really mean 'messageText'?
receiverType

Check warning on line 96 in sdk/react-native/mentions.mdx

View check run for this annotation

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

sdk/react-native/mentions.mdx#L96

Did you really mean 'receiverType'?
);

CometChat.sendMessage(textMessage).then(
Expand Down Expand Up @@ -137,6 +137,12 @@

</Note>

<Note>

With [offline support](/sdk/react-native/offline-send) enabled, a mention message is queued only if you pass a `MessageSentListener` to `sendMessage()`. When the device is offline, `onError` then also fires to tell you the message is queued: check `error.errorParams.queued`, or that `reason` is `null`. `getMessageStatus()` on the message is `PENDING` while it is queued and `FAILED` if it failed. Without a listener the send goes straight to the server and rejects when offline.

</Note>

## Mentioned Messages

By default, the SDK will fetch all the messages irrespective of the fact that the logged-in user is mentioned or not in the message. The SDK has other optional filters such as tags and blocked relationships.
Expand All @@ -155,7 +161,7 @@
```typescript
let UID: string = "UID",
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 164 in sdk/react-native/mentions.mdx

View check run for this annotation

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

sdk/react-native/mentions.mdx#L164

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setUID(UID)
.setLimit(limit)
Expand Down Expand Up @@ -209,7 +215,7 @@
```typescript
let GUID: string = "GUID",
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 218 in sdk/react-native/mentions.mdx

View check run for this annotation

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

sdk/react-native/mentions.mdx#L218

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setGUID(GUID)
.setLimit(limit)
Expand Down Expand Up @@ -265,7 +271,7 @@

| Field | Getter | Return Type | Description |
|-------|--------|-------------|-------------|
| mentionedUsers | `getMentionedUsers()` | [`User[]`](/sdk/reference/entities#user) | Array of users mentioned in the message |

Check warning on line 274 in sdk/react-native/mentions.mdx

View check run for this annotation

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

sdk/react-native/mentions.mdx#L274

Did you really mean 'mentionedUsers'?
| tags (on each mentioned user) | `getTags()` | `string[]` | Tags associated with the mentioned user |

## Mentions With Blocked Info
Expand All @@ -276,7 +282,7 @@

| Field | Getter | Return Type | Description |
|-------|--------|-------------|-------------|
| mentionedUsers | `getMentionedUsers()` | [`User[]`](/sdk/reference/entities#user) | Array of users mentioned in the message |

Check warning on line 285 in sdk/react-native/mentions.mdx

View check run for this annotation

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

sdk/react-native/mentions.mdx#L285

Did you really mean 'mentionedUsers'?
| blockedByMe (on each mentioned user) | `getBlockedByMe()` | `boolean` | Whether the logged-in user has blocked this mentioned user |
| hasBlockedMe (on each mentioned user) | `getHasBlockedMe()` | `boolean` | Whether this mentioned user has blocked the logged-in user |

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

Check warning on line 294 in sdk/react-native/mentions.mdx

View check run for this annotation

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

sdk/react-native/mentions.mdx#L294

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setUID(UID)
.setLimit(limit)
Expand Down Expand Up @@ -341,7 +347,7 @@
```typescript
let GUID: string = "GUID",
limit: number = 30,
messagesRequest: CometChat.MessagesRequest =

Check warning on line 350 in sdk/react-native/mentions.mdx

View check run for this annotation

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

sdk/react-native/mentions.mdx#L350

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setGUID(GUID)
.setLimit(limit)
Expand Down
Loading
Loading