Hide all conversations
Hide all conversations from the conversation list on the current device with the WASM SDK.
hideAllConversations() resets the list state, unread count, latest-message summary, and draft of every conversation on the current device so that those conversations no longer appear in the paginated conversation list:
await openimsdk.hideAllConversations();When the Promise resolves, only the local conversation state has been reset. The operation does not delete local message records or server messages, and it does not remove groups, friend relationships, or conversations on other clients. A conversation can appear again after a new message arrives or valid conversation state is established again.
After the bulk hide operation, requery the conversation list and total unread count to reconcile the UI. Do not treat Promise resolution as a remote-state event.
Was this page helpful?