支持一键已读

This commit is contained in:
cc committed 2026-05-04 23:34:49 +08:00
1 parent fd0db6e306
commit c09128b83e
8 files changed
+110

No files matched your search

+4
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)
})