onConversationRead method Null safety
Occurs when a conversation read receipt is received.
Occurs in the following scenarios:
(1) The message is read by the receiver (The conversation receipt is sent).
Upon receiving this event, the SDK sets the isAcked
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 isRead
property of the message in the conversation to true
in the local database.
Param from
The user who sends the read receipt.
Param to
The user who receives the read receipt.
Implementation
void onConversationRead(String from, String to) {}