通过时间戳设置消息状态为对方已读
会话信息
消息的发送时间,将该时间之前的消息设置为已读
将自己发送的指定时间之前的消息设置为对方已读,状态值为 SentStatus.READ
5.4.0
通过时间戳设置消息状态为对方已读示例:
const conversation = { conversationType: RongIMLib.ConversationType.PRIVATE, targetId: 'targetId'};const timestamp = Date.now();const res = await RongIMLib.electronExtension.setMessageStatusToRead(conversation, timestamp);console.info('通过时间戳设置消息状态为对方已读结果:', res); Copy
const conversation = { conversationType: RongIMLib.ConversationType.PRIVATE, targetId: 'targetId'};const timestamp = Date.now();const res = await RongIMLib.electronExtension.setMessageStatusToRead(conversation, timestamp);console.info('通过时间戳设置消息状态为对方已读结果:', res);
通过时间戳设置消息状态为对方已读