read All Messages Of Conversation
open fun readAllMessagesOfConversation( @NonNull context: Context, @NonNull conversationId: String, @Nullable callback: STWOperationCallback<MessagingError>)
Content copied to clipboard
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
conversation Id
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