onConversationRead property

(void Function(String from, String to)?) onConversationRead
final

Occurs when a conversation read receipt is received.

Occurs in the following scenarios: (1) The message is read by the recipient (The conversation receipt is sent). Upon receiving this event, the SDK sets the ChatMessage.hasReadAck property of the message in the conversation to true in the local database. (2) In the multi-device login scenario, when one device sends a Conversation receipt, the server will set the number of unread messages to 0, and the callback occurs on the other devices. and sets the ChatMessage.hasReadAck property of the message in the conversation to true in the local database.

Implementation

final void Function(String from, String to)? onConversationRead;