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) => {