From 35133a72fcad8d1adf56caf522d4663d2aba541d Mon Sep 17 00:00:00 2001 From: BenyFilho <168232825+BenyFilho@users.noreply.github.com> Date: Wed, 6 Aug 2025 09:51:36 -0300 Subject: [PATCH] Fix Message Forward (#3680) * Fix Message Forward * Fix Message Forward --------- Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com> --- src/util/Injected/Store.js | 2 +- src/util/Injected/Utils.js | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/util/Injected/Store.js b/src/util/Injected/Store.js index 8455e6e..f14ce74 100644 --- a/src/util/Injected/Store.js +++ b/src/util/Injected/Store.js @@ -111,7 +111,7 @@ exports.ExposeStore = () => { ...window.require('WAPhoneFindCC') }; window.Store.ForwardUtils = { - ...window.require('WAWebForwardMessagesToChat') + ...window.require('WAWebChatForwardMessage') }; window.Store.VCard = { ...window.require('WAWebFrontendVcardUtils'), diff --git a/src/util/Injected/Utils.js b/src/util/Injected/Utils.js index a3b60ea..2a82fa4 100644 --- a/src/util/Injected/Utils.js +++ b/src/util/Injected/Utils.js @@ -6,12 +6,7 @@ exports.LoadUtils = () => { window.WWebJS.forwardMessage = async (chatId, msgId) => { const msg = window.Store.Msg.get(msgId) || (await window.Store.Msg.getMessagesById([msgId]))?.messages?.[0]; const chat = await window.WWebJS.getChat(chatId, { getAsModel: false }); - - if (window.compareWwebVersions(window.Debug.VERSION, '>', '2.3000.0')) { - return window.Store.ForwardUtils.forwardMessagesToChats([msg], [chat], true); - } else { - return chat.forwardMessages([msg]); - } + return window.Store.ForwardUtils.forwardMessages(chat, [msg], true, true); }; window.WWebJS.sendSeen = async (chatId) => {