updateMessageRead( msgId, status ) method

Updates the message read status.

Syntax

<static> updateMessageRead( msgId, status )

Parameters

Name Type Description
msgId number The id of message to update the read status for.
status boolean Whether the message will be set to read (true) or unread (false).

Example

// set all messages as read
var messages = hwc.getAllMessages();
for( var index = 0; index < messages.length; index++ )
{
   hwc.updateMessageRead( messages[index].getMessageId(), true );
}

Source

hwc-api.js, line 3075.