删除会话
删除指定会话
调用 removeConversation 删除指定会话。
js
const conversationType = RongIMLib.ConversationType.PRIVATE;
const targetId = '接收方的 userId';
RongIMLib.removeConversation({
conversationType,
targetId: targetId,
}).then(res => {
// 删除指定会话成功
if(res.code === 0){
console.log(res.code)
} else {
console.log(res.code, res.msg)
}
})