Browse SDKs · React Native
Platform
SDKsReact Native

Hide all conversations

Hide all conversations from the conversation list for the current account using the OpenIM React Native SDK.

Copy

Hide all conversation entries from the active conversation list for the current account. This batch operation hides conversations on the current device without deleting any historical chat messages.

await OpenIMSDK.hideAllConversations();

Return value

A resolved Promise confirms that the request to hide all conversations was processed.

Upon successful resolution, clear the locally rendered conversation list and refresh the interface by invoking Retrieve conversation list and Get total unread count. When new messages arrive or new interactions occur, affected conversations reappear through OnNewConversation or OnConversationChanged events, where the client merges entries keyed by conversationID.