Updates the message read status.
<static> updateMessageRead( msgId, status )
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). |
// set all messages as read var messages = hwc.getAllMessages(); for( var index = 0; index < messages.length; index++ ) { hwc.updateMessageRead( messages[index].getMessageId(), true ); }