清除时间戳前的未读数
会话信息
清理未读时间戳
清除时间戳前的未读数,仅支持 Electron 平台,不支持清理超级群会话
清除时间戳前的未读数示例:
const conversation = { conversationType: RongIMLib.ConversationType.PRIVATE, targetId: 'targetId',}const timestamp = 1626955200000;const clearRes = await RongIMLib.clearUnreadCountByTimestamp(conversation, timestamp);console.info('清除时间戳前的未读数结果:', clearRes); Copy
const conversation = { conversationType: RongIMLib.ConversationType.PRIVATE, targetId: 'targetId',}const timestamp = 1626955200000;const clearRes = await RongIMLib.clearUnreadCountByTimestamp(conversation, timestamp);console.info('清除时间戳前的未读数结果:', clearRes);
清除时间戳前的未读数