Browse SDKs · WASM
Platform
SDKsWASM

Hide a conversation

Hide a conversation entry from the current account without deleting a relationship or group.

Copy

hideConversation() hides only the conversation entry for the signed-in user. It does not delete a one-to-one relationship, leave a group, or affect another user.

await openimsdk.hideConversation(
  conversationID
);

Use this method to remove a conversation entry temporarily from the chat list. A hidden conversation can reappear when a new message arrives or synchronization completes again.

State changes after the call

When hideConversation() resolves, the hide request has completed, and the application can immediately remove conversationID from the current chat list. When SdkEvent.OnConversationChanged arrives (data: ConversationItem[]), match the item by conversationID to update list state. To recalibrate the full conversation list, re-run the paginated query. For complete event registration and cleanup, see Get the conversation list.