Skip to main content

messageDeleted

When a message is deleted this event is triggered

JavaScript

frame1.on("messageDeleted", (message) => {
console.log("messageDeleted", message);
});

Properties

PropertiesDescriptionType
_idid of the messageString
likesarray of likesArray
createdwhen the chat message was createdString
chatRoomchat room idString
messagemessage that was sentString
useruser idString
Customercustomer idString
JSON Sample Response
{
"_id": "632a1497f0357f1c648791ec",
"likes": [],
"created": "2022-09-20T19:29:27.319Z",
"chatRoom": "631794a83671700c713b1ce6",
"message": "hjksdh",
"user": "63233015c3aa3508a4c8fc34",
"customer": "631794a83671700c713b1ce5",
"__v": 0
}