removeConversation

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

从会话列表中移除某一会话。

此方法不删除会话内的消息。如果此会话中有新的消息,该会话将重新在会话列表中显示,并显示最近的历史消息。

Parameters

conversationType

会话类型 io.rong.imlib.model.Conversation.ConversationType 。

targetId

会话 id。根据不同的 conversationType,可能是用户 id、讨论组 id、群组 id 或聊天室 id。

callback

移除会话是否成功的回调,回调类型是 Boolean,ResultCallback<Boolean>