KustomerCore.markRead()
Mark a conversation as read
First, initialize chat
You must initialize with
KustomerCore.init()
before you can execute any additional Core SDK methods
Examples
// mark a conversation as "read"
KustomerCore.markRead({
conversationId: 'SOME_ID',
messageIds: [
'MESSAGE_ID1',
'MESSAGE_ID2'
});
Syntax
KustomerCore.markRead(options)
Parameter | Type | Description |
---|---|---|
options | Object | An object containing the conversationId and messageIds properties.conversationId is the ID of the conversationmessageIds is an array of messages you would like to mark read |
Updated about 2 years ago