mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: media cache throwing error
This commit is contained in:
@@ -146,7 +146,7 @@ export const prepareWAMessageMedia = async(
|
||||
}
|
||||
const obj = WAProto.Message.fromObject(content)
|
||||
if(cacheableKey) {
|
||||
options.mediaCache!.set(cacheableKey, WAProto.Message.encode(obj))
|
||||
options.mediaCache!.set(cacheableKey, WAProto.Message.encode(obj).finish())
|
||||
}
|
||||
|
||||
return obj
|
||||
|
||||
Reference in New Issue
Block a user