Flag a Message
In other words, as a user, how do I report a message? To flag a message, you can use theflagMessage() method. This method takes the message ID and a payload containing an optional reason ID and remark.
- Flag Message
- TypeScript
Parameters
Response
On successful flagging, you’ll receive a response object:Get Flag Reasons
In other words, what are the available reasons for flagging a message? Before flagging a message, you can retrieve the list of available flag reasons using thegetFlagReasons() method. These reasons are configured in the CometChat Dashboard.
- Get Flag Reasons
- TypeScript