修复socket更新中的seq值bug (#54)

Co-authored-by: qiao <jovines@qq.com>
This commit is contained in:
Jovines
2026-01-10 21:42:00 +08:00
committed by GitHub
co-authored by qiao
parent 2fb61940e4
commit 40b0055a33
2 changed files with 2 additions and 2 deletions
@@ -98,7 +98,7 @@ export function registerSessionHandlers(socket: SocketWithData, deps: SessionHan
const update = {
id: randomUUID(),
seq: Date.now(),
seq: msg.seq,
createdAt: Date.now(),
body: {
t: 'new-message' as const,
+1 -1
View File
@@ -84,7 +84,7 @@ export class MessageService {
const update = {
id: msg.id,
seq: Date.now(),
seq: msg.seq,
createdAt: msg.createdAt,
body: {
t: 'new-message' as const,