Browse SDKs · React Native
Platform
SDKsReact Native

Hide a conversation

Hide a single conversation from the conversation list without deleting messages using the OpenIM React Native SDK.

Copy

Hide a single conversation entry from the active conversation list for the current account. This action hides the list item on the current device without deleting chat history; the conversation will reappear when a new message arrives or an interaction occurs.

await OpenIMSDK.hideConversation(conversationID);

Parameters

ParameterTypeRequiredDescription
conversationIDstringYesTarget conversation ID to hide.

Return value

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

Upon Promise resolution, remove the conversation identified by conversationID from the local UI list view. Subsequent mutations or incoming messages will trigger the OnConversationChanged event, prompting the application to re-insert or update the conversation by conversationID. For full event handling, see Retrieve conversation list.