fix: media cache throwing error

This commit is contained in:
Adhiraj Singh
2021-11-24 15:35:43 +05:30
parent b4332488b8
commit 3173e0d034

View File

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