设置标签中会话置顶
标签 id
会话
设置在指定标签下置顶的会话。如果根据标签获取会话,可在获取的会话中可以看到该属性。请注意与会话列表中的会话置顶相区分
const tagId = 'tagId';const conversation = { conversationType: RongIMLib.ConversationType.PRIVATE, targetId: 'targetId',};const isTop = true;const res = await RongIMLib.setConversationToTopInTag(tagId, conversation, isTop);console.log('设置标签中会话置顶结果:', res); Copy
const tagId = 'tagId';const conversation = { conversationType: RongIMLib.ConversationType.PRIVATE, targetId: 'targetId',};const isTop = true;const res = await RongIMLib.setConversationToTopInTag(tagId, conversation, isTop);console.log('设置标签中会话置顶结果:', res);
设置标签中会话置顶