Skip to content

Commit ed66b04

Browse files
v4.0.16
1 parent 3af4ba5 commit ed66b04

3 files changed

Lines changed: 20 additions & 5 deletions

File tree

CometChat.d.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2258,6 +2258,13 @@ export class MediaMessage extends BaseMessage implements Message {
22582258
* Set the tags for the message.
22592259
*/
22602260
setTags(tags: Array<String>): void;
2261+
/**
2262+
* Gets the moderation status of the message.
2263+
* @description If the message is not moderated, it returns "unmoderated".
2264+
* If the message is moderated, it returns the status of the moderation.
2265+
* @returns {string}
2266+
*/
2267+
getModerationStatus(): string;
22612268
}
22622269

22632270
/**
@@ -2649,6 +2656,13 @@ export class TextMessage extends BaseMessage implements Message {
26492656
* Set the tags for the message.
26502657
*/
26512658
setTags(tags: Array<String>): void;
2659+
/**
2660+
* Gets the moderation status of the message.
2661+
* @description If the message is not moderated, it returns "unmoderated".
2662+
* If the message is moderated, it returns the status of the moderation.
2663+
* @returns {string}
2664+
*/
2665+
getModerationStatus(): string;
26522666
}
26532667

26542668
export const constants: {
@@ -3894,6 +3908,10 @@ export class MessageListener {
38943908
* This event is triggered when a message is read by all members in a group.
38953909
*/
38963910
onMessagesReadByAll?: Function;
3911+
/**
3912+
* This event is triggered when a message is moderated.
3913+
*/
3914+
onMessageModerated?: Function;
38973915
/**
38983916
* This event is triggered when an AI tool result is received.
38993917
*/

CometChat.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
{
22
"name": "@cometchat/chat-sdk-react-native",
3-
"version": "4.0.15",
3+
"version": "4.0.16",
44
"description": "A complete chat solution.",
55
"main": "CometChat.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1"
88
},
9-
10-
11-
129
"keywords": [
1310
"CometChat",
1411
"chat",

0 commit comments

Comments
 (0)