获取第一条未读消息信息
会话信息
5.9.0
获取指定会话中的第一条未读消息信息 注意:
获取第一条未读消息信息示例:
const conversation = { conversationType: RongIMLib.ConversationType.PRIVATE, targetId: 'targetId',}const firstUnreadMessageInfoRes = await RongIMLib.getFirstUnreadMessageInfo(conversation);console.info('获取第一条未读消息信息结果:', firstUnreadMessageInfoRes); Copy
const conversation = { conversationType: RongIMLib.ConversationType.PRIVATE, targetId: 'targetId',}const firstUnreadMessageInfoRes = await RongIMLib.getFirstUnreadMessageInfo(conversation);console.info('获取第一条未读消息信息结果:', firstUnreadMessageInfoRes);
获取第一条未读消息信息