支持一键已读

This commit is contained in:
cc
2026-05-04 23:34:49 +08:00
parent fd0db6e306
commit c09128b83e
8 changed files with 110 additions and 0 deletions

View File

@@ -2253,6 +2253,10 @@ function registerIpcHandlers() {
return chatService.getSessions()
})
ipcMain.handle('chat:markAllSessionsRead', async () => {
return chatService.markAllSessionsRead()
})
ipcMain.handle('chat:getSessionStatuses', async (_, usernames: string[]) => {
return chatService.getSessionStatuses(usernames)
})