From 0b480cee4efaf2cda3efef1f711e40403318da6c Mon Sep 17 00:00:00 2001 From: devlikepro Date: Thu, 9 Jul 2026 20:39:40 +0700 Subject: [PATCH] fix: msg.avParams is not a function --- src/util/Injected/Utils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/util/Injected/Utils.js b/src/util/Injected/Utils.js index dfa30a579de..7cca7a4a3fc 100644 --- a/src/util/Injected/Utils.js +++ b/src/util/Injected/Utils.js @@ -515,7 +515,9 @@ exports.LoadUtils = () => { newsletterJid: chat.id.toJid(), ...(isMedia ? { - mediaMetadata: msg.avParams(), + mediaMetadata: window + .require('WAWebMediaMetadata') + .mediaMetadata(msg), mediaHandle: isMedia ? mediaOptions.mediaHandle : null,