获取第一条未读消息
获取指定会话中的第一条未读消息,仅支持 Electron 平台
获取第一条未读消息示例:
const conversation = {conversationType: RongIMLib.ConversationType.PRIVATE,targetId: 'targetId',}const firstUnreadRes = await RongIMLib.getFirstUnreadMessage(conversation);console.info('获取第一条未读消息结果:', firstUnreadRes); Copy
const conversation = {conversationType: RongIMLib.ConversationType.PRIVATE,targetId: 'targetId',}const firstUnreadRes = await RongIMLib.getFirstUnreadMessage(conversation);console.info('获取第一条未读消息结果:', firstUnreadRes);
获取第一条未读消息