removeConversation

public abstract void removeConversation(ConversationType conversationType, String targetId, String channelId, IRongCoreCallback.ResultCallback<Boolean> callback)

Removes a conversation from the conversation list.

This method does not delete the messages within the conversation. If new messages are received in this conversation, the conversation will reappear in the conversation list, displaying the most recent history messages.

Since

5.1.1

Parameters

conversationType

The type of conversation .

targetId

The ID of the conversation. Depending on the conversationType, it could be a user ID, discussion group ID, group ID, or chatroom ID.

channelId

The business identifier of the conversation to which the message belongs.

callback

The callback indicating whether the conversation was successfully removed, of type Boolean, ResultCallback<Boolean>.