SDKsAndroid
Hide a conversation
Use hideConversation() to hide a conversation entry from the current account.
hideConversation() hides only the current account's conversation entry. It does not delete a one-to-one relationship, leave a group, or affect another account.
OpenIMClient.getInstance().conversationManager.hideConversation(
new OnBase<String>() {
@Override
public void onSuccess(String data) {
// The request completed and the conversation was hidden.
}
@Override
public void onError(int code, String error) {
// code and error describe the failure.
}
},
conversationID
);A hidden conversation can appear again after a new message or resynchronization. Remove it from the current list after success. Conversation list changes can be received through onConversationChanged; see Get the conversation list for listener setup.
Was this page helpful?