设置消息的接收状态
消息 ID,注意:需要传递的参数为 number 类型的 messageId 而非 string 类型的 messageUId
接受状态信息,类型为 IReceivedStatusInfo
本接口仅适用 Electron 平台设置消息的接收状态,支持多状态同时设置 设置对方发送的消息 自己的接受状态信息
5.9.3
设置消息的接收状态示例:
const messageId = 123;const receivedStatusInfo = { isRead: true, isListened: true,};const res = await RongIMLib.electronExtension.setMessageReceivedStatusInfo(messageId, receivedStatusInfo);console.info('设置消息的接收状态结果:', res); Copy
const messageId = 123;const receivedStatusInfo = { isRead: true, isListened: true,};const res = await RongIMLib.electronExtension.setMessageReceivedStatusInfo(messageId, receivedStatusInfo);console.info('设置消息的接收状态结果:', res);
设置消息的接收状态