messageDeleted
When a message is deleted this event is triggered
JavaScript
frame1.on("messageDeleted", (message) => {
console.log("messageDeleted", message);
});
Properties
Properties | Description | Type |
---|---|---|
_id | id of the message | String |
likes | array of likes | Array |
created | when the chat message was created | String |
chatRoom | chat room id | String |
message | message that was sent | String |
user | user id | String |
Customer | customer id | String |
JSON Sample Response
{
"_id": "632a1497f0357f1c648791ec",
"likes": [],
"created": "2022-09-20T19:29:27.319Z",
"chatRoom": "631794a83671700c713b1ce6",
"message": "hjksdh",
"user": "63233015c3aa3508a4c8fc34",
"customer": "631794a83671700c713b1ce5",
"__v": 0
}