Browse SDKs · WASM
SDKsWASM

Mark all conversations as read

Clear the unread counts of all currently unread conversations with the WASM SDK.

Copy

When the user explicitly chooses a “mark all as read” action, call markAllConversationMessageAsRead() to process every unread conversation currently recorded in the local SDK:

await openimsdk.markAllConversationMessageAsRead();

When the Promise resolves, the SDK has finished processing the unread conversations found for this operation. It does not mean that the related conversation events have already arrived or that every other client has finished updating its UI.

Continue merging OnConversationChanged by conversationID and use OnTotalUnreadMessageCountChanged for the aggregate unread count. The complete listeners belong to Retrieve the conversation list and Get the total unread count. Requery both snapshots when reconciliation is required.