fix: message id int32

This commit is contained in:
linyuchen
2024-02-22 23:02:23 +08:00
parent 688624500f
commit 12d1f87ad5

View File

@@ -5,7 +5,7 @@ export let groups: Group[] = []
export let friends: Friend[] = []
export let msgHistory: Record<string, RawMessage> = {} // msgId: RawMessage
let globalMsgId = Date.now()
let globalMsgId = Date.now() / 1000;
export function addHistoryMsg(msg: RawMessage): boolean{
let existMsg = msgHistory[msg.msgId]