readMessages

open fun readMessages(    @NonNull context: Context,     @NonNull messageList: List<BaseMessage>,     @Nullable callback: STWOperationCallback<MessagingError>)

Call this method to mark as read the given message list and synced with back-end.

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

See also

Parameters

context

The application context

messageList

The messages list

callback

This callback will be invoked to handle operation result :

  • Success : The request to mark list of messages as read is successfully sent to the server
  • Error : a local error occurred when trying to send the request to mark list of messages as read to the server