mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
style: remove useless variable in messages
This commit is contained in:
@@ -131,7 +131,8 @@ export const prepareWAMessageMedia = async(
|
||||
.filter(Boolean)
|
||||
)
|
||||
delete uploadData.media
|
||||
const content = {
|
||||
|
||||
const obj = WAProto.Message.fromObject({
|
||||
[`${mediaType}Message`]: MessageTypeProto[mediaType].fromObject(
|
||||
{
|
||||
url: mediaUrl,
|
||||
@@ -143,8 +144,8 @@ export const prepareWAMessageMedia = async(
|
||||
...uploadData
|
||||
}
|
||||
)
|
||||
}
|
||||
const obj = WAProto.Message.fromObject(content)
|
||||
})
|
||||
|
||||
if(cacheableKey) {
|
||||
options.mediaCache!.set(cacheableKey, WAProto.Message.encode(obj).finish())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user