Skip to content

Commit c8cd49c

Browse files
committed
enhance: unique message ID generation
1 parent ee8a007 commit c8cd49c

4 files changed

Lines changed: 8 additions & 3 deletions

File tree

doc/更新日志.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
V6.6.1
2+
更新时间 2025-11-16
3+
4+
优化 shortId 唯一性
5+
=================
16
V6.6.0
27
更新时间 2025-11-15
38

package-dist.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name":"llonebot","version":"6.6.0","type":"module","description":"","main":"llonebot.js","author":"linyuchen"}
1+
{"name":"llonebot","version":"6.6.1","type":"module","description":"","main":"llonebot.js","author":"linyuchen"}

src/main/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class Store extends Service {
7878
}
7979

8080
getUniqueMsgId(msg: RawMessage): string {
81-
return `${msg.chatType}-${msg.peerUid}-${msg.msgSeq}-${msg.msgRandom}}`
81+
return `${msg.chatType}-${msg.peerUid}-${msg.msgSeq}-${msg.msgRandom}-${msg.msgTime}`
8282
}
8383

8484
createMsgShortId(msg: RawMessage): number {

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import fs from 'fs'
22
import packageJson from '../package-dist.json'
33

4-
export const version = '6.6.0'
4+
export const version = '6.6.1'
55

66
export const writeVersion = ()=>{
77
const pkgJsonPath = './package-dist.json'

0 commit comments

Comments
 (0)