read Messages
open fun readMessages( @NonNull context: Context, @NonNull messageList: List<BaseMessage>, @Nullable callback: STWOperationCallback<MessagingError>)
Content copied to clipboard
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
message List
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