添加会话到指定标签
标签 ID
会话信息,包含会话类型、会话 ID 和 channelId,类型为 IConversationOption 数组
添加会话到指定标签,一个会话可以添加到多个标签 注意:
const tagId = 'tagId';const conversations = [{ conversationType: RongIMLib.ConversationType.PRIVATE, targetId: 'targetId',}];const res = await RongIMLib.addConversationsToTag(tagId, conversations);console.log('添加会话到指定标签结果:', res); Copy
const tagId = 'tagId';const conversations = [{ conversationType: RongIMLib.ConversationType.PRIVATE, targetId: 'targetId',}];const res = await RongIMLib.addConversationsToTag(tagId, conversations);console.log('添加会话到指定标签结果:', res);
添加会话到指定标签