[**RongIMLib**](../README.md) *** [RongIMLib](../globals.md) / clearUnreadCountByTimestamp # Function: clearUnreadCountByTimestamp() > **clearUnreadCountByTimestamp**(`conversation`, `timestamp`): `Promise`\<[`RCResult`](../interfaces/RCResult.md)\<`void`\>\> 清除时间戳前的未读数 ## Parameters ### conversation [`IConversationIdentifier`](../interfaces/IConversationIdentifier.md) 会话信息 ### timestamp `number` 清理未读时间戳 ## Returns `Promise`\<[`RCResult`](../interfaces/RCResult.md)\<`void`\>\> ## Description 清除时间戳前的未读数,仅支持 Electron 平台,不支持清理超级群会话 ## Example 清除时间戳前的未读数示例: ```ts const conversation = { conversationType: RongIMLib.ConversationType.PRIVATE, targetId: 'targetId', } const timestamp = 1626955200000; const clearRes = await RongIMLib.clearUnreadCountByTimestamp(conversation, timestamp); console.info('清除时间戳前的未读数结果:', clearRes); ```