设置单个属性
聊天室 ID
设置聊天室属性配置参数,类型为 IChatroomEntry
设置聊天室属性,支持设置 Key-Value 类型的属性信息 功能局限性:
注意:
聊天室属性自定义设置
const chatRoomId = 'chatroomId';const options = { key: 'key', value: 'value',};const res = await RongIMLib.setChatRoomEntry(chatRoomId, options);console.log('设置单个属性结果:', res); Copy
const chatRoomId = 'chatroomId';const options = { key: 'key', value: 'value',};const res = await RongIMLib.setChatRoomEntry(chatRoomId, options);console.log('设置单个属性结果:', res);
设置单个属性