The Agora Chat SDK provides a message reporting API, which allows end-users to report objectionable messages directly from their applications. After the Agora Chat server receives the report, it stores the report and displays it on Agora Console. Moderators can view the report items on the Agora Console and process the messages and message senders according to their content policy.
Call reportMessage
provided by the Agora Chat Web SDK to implement the reporting feature.
Before proceeding, ensure that you meet the following requirements:
The following code sample shows how to call the reporting API:
connection.reportMessage({
reportType: 'report type';
reportReason: 'report reason';
messageId: 'ID of the reported message';
})