Browse SDKs · React Native
SDKsReact Native

Mark a conversation as read

Mark a conversation as read for the current account.

Copy

After the user opens a conversation and reads its messages, call markConversationMessageAsRead() to mark it as read.

await OpenIMSDK.markConversationMessageAsRead(conversationID);

Parameters

conversationID is the ID of the conversation to mark as read.

Return result

After the call completes, the current account's unread state for the conversation is updated. Unread-count changes in the conversation list are delivered through OnConversationChanged; see Retrieve the conversation list. For group conversations, this method changes only the current account's conversation unread state.