Browse SDKs · iOS
SDKsiOS

Hide a conversation

Hide a conversation from the current account’s list without deleting a relationship or group.

Copy

hideConversation:onSuccess:onFailure: only hides the conversation entry for the signed-in user. It does not delete a one-to-one relationship, leave a group, or affect other users.

[[OIMManager manager] hideConversation:conversationID
                              onSuccess:nil
                              onFailure:nil];

Use this method to remove a conversation entry from the chat list temporarily. The hidden conversation may appear again after a new message arrives or synchronization completes.

A successful callback means that the hide request has completed. The caller can immediately remove the corresponding conversationID from the current list, merge later changes idempotently through onConversationChanged:, and query the paginated list again when reconciliation is needed. For the complete delegate, see Retrieve the conversation list.

To hide every conversation for the current account, use Hide all conversations. Require explicit confirmation for this account-level operation; do not place it in an individual conversation's action menu.