mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
pad wamessagekey
This commit is contained in:
@@ -34,7 +34,7 @@ export const waChatKey = (pin: boolean) => ({
|
|||||||
compare: (k1: string, k2: string) => k2.localeCompare (k1)
|
compare: (k1: string, k2: string) => k2.localeCompare (k1)
|
||||||
})
|
})
|
||||||
export const waMessageKey = {
|
export const waMessageKey = {
|
||||||
key: (m: WAMessage) => (5000 + (m['epoch'] || 0)).toString(16) + toNumber (m.messageTimestamp).toString(16).padStart(8, '0'),
|
key: (m: WAMessage) => (5000 + (m['epoch'] || 0)).toString(16).padStart(6, '0') + toNumber(m.messageTimestamp).toString(16).padStart(8, '0'),
|
||||||
compare: (k1: string, k2: string) => k1.localeCompare (k2)
|
compare: (k1: string, k2: string) => k1.localeCompare (k2)
|
||||||
}
|
}
|
||||||
export const WA_MESSAGE_ID = (m: WAMessage) => GET_MESSAGE_ID (m.key)
|
export const WA_MESSAGE_ID = (m: WAMessage) => GET_MESSAGE_ID (m.key)
|
||||||
|
|||||||
Reference in New Issue
Block a user