fix: ensure proper type casting for cache and message handling

This commit is contained in:
Francisco Pessano
2025-08-14 16:50:03 +00:00
committed by GitHub
parent 84fcd13907
commit b0a973e24c
6 changed files with 16 additions and 15 deletions

View File

@@ -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