onConversationRead property

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

~english 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 EMMessage.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 EMMessage.hasReadAck property of the message in the conversation to true in the local database. ~end

~chinese 收到会话已读回执的回调。

回调此方法的场景: (1)消息被接收方阅读,即接收方发送了会话已读回执。 SDK 在接收到此事件时,会将本地数据库中该会话中消息的 isAcked 属性置为 true。 (2)多端多设备登录场景下,一端发送会话已读回执,服务器端会将会话的未读消息数置为 0, 同时其他端会回调此方法,并将本地数据库中该会话中消息的 isRead 属性置为 true。 ~end

Implementation

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