mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: ensure proper type casting for cache and message handling
This commit is contained in:
committed by
GitHub
parent
84fcd13907
commit
b0a973e24c
@@ -20,7 +20,7 @@ export const downloadHistory = async (msg: proto.Message.IHistorySyncNotificatio
|
||||
let buffer = Buffer.concat(bufferArray)
|
||||
|
||||
// decompress buffer
|
||||
buffer = await inflatePromise(buffer)
|
||||
buffer = Buffer.from(await inflatePromise(buffer))
|
||||
|
||||
const syncData = proto.HistorySync.decode(buffer)
|
||||
return syncData
|
||||
|
||||
Reference in New Issue
Block a user