mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
chore: use 16 bit integer for tag
This commit is contained in:
@@ -243,8 +243,8 @@ export const fetchLatestBaileysVersion = async() => {
|
||||
|
||||
/** unique message tag prefix for MD clients */
|
||||
export const generateMdTagPrefix = () => {
|
||||
const bytes = randomBytes(2)
|
||||
return `${bytes[0]}.${bytes[1]}-`
|
||||
const bytes = randomBytes(4)
|
||||
return `${bytes.readUInt16BE()}.${bytes.readUInt16BE(2)}-`
|
||||
}
|
||||
|
||||
const STATUS_MAP: { [_: string]: proto.WebMessageInfo.WebMessageInfoStatus } = {
|
||||
|
||||
Reference in New Issue
Block a user