onConversationRead property

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

Occurs when a conversation read receipt is received.

This event is triggered in the following scenarios: (1) The message is read by the recipient (The conversation read 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 read receipt, the server will set the number of unread messages to 0, and the callback occurs on the other devices. and the ChatMessage.hasReadAck property of the message in the conversation is set to true in the local database.

Implementation

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