Hide a conversation
Hide a conversation entry from the current account without deleting a relationship or group.
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
A successful hideConversation() Promise means that the hide request has completed. The caller can immediately remove the corresponding conversationID from the current list. The client may subsequently receive CbEvents.OnConversationChanged, whose data is ConversationItem[]. Merge idempotently or remove the item by conversationID, and query again when the current list must be reconciled. See Get the conversation list for the complete listener and cleanup. This page does not register the handler again and does not describe hiding as deleting the chat relationship.
Was this page helpful?