markAsRead

abstract fun markAsRead(    spaceId: String,     messageId: String? = null,     handler: CompletionHandler<Void>? = null)

Mark messages sent before the specified message in the space as read, including the specified message.

Since

2.3.0

Parameters

spaceId

the id of space.

messageId

the id of a message. If this value is null, then mark all messages in the space read.

handler

an instance of CompletionHandler (OPTIONAL).