优化防撤回会话列表

This commit is contained in:
cc
2026-04-25 19:22:35 +08:00
parent fc3356ece2
commit 8e2a6ec933
6 changed files with 246 additions and 16 deletions

View File

@@ -2241,6 +2241,10 @@ function registerIpcHandlers() {
return chatService.getNewMessages(sessionId, minTime, limit)
})
ipcMain.handle('chat:getAntiRevokeSessions', async () => {
return chatService.getAntiRevokeSessions()
})
ipcMain.handle('chat:updateMessage', async (_, sessionId: string, localId: number, createTime: number, newContent: string) => {
return chatService.updateMessage(sessionId, localId, createTime, newContent)
})