修复了修改消息时可能修改到错误消息的问题

This commit is contained in:
cc committed 2026-02-18 23:18:14 +08:00
1 parent 21ea879d97
commit 84ea378815
9 files changed
+15 -15

No files matched your search

+2 -2
View File
@@ -434,8 +434,8 @@ export class WcdbService {
/**
* 修改消息内容
*/
async updateMessage(sessionId: string, localId: number, newContent: string): Promise<{ success: boolean; error?: string }> {
return this.callWorker('updateMessage', { sessionId, localId, newContent })
async updateMessage(sessionId: string, localId: number, createTime: number, newContent: string): Promise<{ success: boolean; error?: string }> {
return this.callWorker('updateMessage', { sessionId, localId, createTime, newContent })
}
/**