markConversationAsRead

fun markConversationAsRead(    context: Context,     conversationId: Int,     callback: OperationListener<MessagingError>?)

Call this method to mark all messages of the conversation as read and synced with back-end.

This method is automatically marks as read the given conversation and sends read receipt to all related recipients in the conversation for each messages marked as read.

See also

Parameters

context

The application context

conversationId

The conversation id

callback

This callback will be invoked to handle operation result : Success : The request to mark all messages of the conversation is successfully sent to the server Error : a local error occurred when trying to send the request to mark all messages of a conversation to the server