Browse SDKs · React Native
SDKsReact Native

Hide all conversations

Hide all conversations for the current account.

Copy

Call hideAllConversations() to hide all conversations for the current account.

await OpenIMSDK.hideAllConversations();

After the call completes, query the conversation list and the total unread count to refresh the UI. A conversation may reappear when a new message arrives or its state is synchronized again.