Webhook API for site integration (Flag message feature) #32
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: apps/BareRTC#32
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
There should be an easy way for users to report inappropriate messages on chat to the website. This could be done by defining Webhook APIs where BareRTC can call your website.
Config File
A
[[Webhooks]]
list could be used to define specific endpoint URLs on your website.A randomly generated
SharedSecret
(customizable) will be an authentication token for your website, to authenticate that the request came only from your chat server.Report Endpoint
Example JSON blobs that might be sent to a "report message" webhook.
Chat UI
On the chat room, a red flag button could be added next to the emoji react picker on the bottom/right corner of the message. This better justifies just making the message box taller to avoid the current issue of text going underneath the emoji button on long messages.
Clicking it should open a Report Modal.