From 89a06b15a8cfa6ff74a3118d0cd037ed21f582e1 Mon Sep 17 00:00:00 2001 From: tuyuribr <45042245+tuyuribr@users.noreply.github.com> Date: Wed, 8 Dec 2021 00:04:44 -0300 Subject: [PATCH] Hot Fix WA 2.2147.14 (#1035) * Hot Fix WA 2.2147.14 * Update Injected.js * Update Client.js * sendPresence1 * Update Client.js * queryLinkPreview * openChatDrawer * revert back to using Wap Co-authored-by: Pedro Lopez --- src/util/Injected.js | 6 +++--- src/util/InterfaceController.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/util/Injected.js b/src/util/Injected.js index d9dabf9..d29f49c 100644 --- a/src/util/Injected.js +++ b/src/util/Injected.js @@ -9,7 +9,7 @@ exports.ExposeStore = (moduleRaidStr) => { window.Store.AppState = window.mR.findModule('STREAM')[0].Socket; window.Store.Conn = window.mR.findModule('Conn')[0].Conn; window.Store.CryptoLib = window.mR.findModule('decryptE2EMedia')[0]; - window.Store.Wap = window.mR.findModule('Wap')[0].default; + window.Store.Wap = window.mR.findModule('queryLinkPreview')[0].default; window.Store.SendSeen = window.mR.findModule('sendSeen')[0]; window.Store.SendClear = window.mR.findModule('sendClear')[0]; window.Store.SendDelete = window.mR.findModule('sendDelete')[0]; @@ -22,7 +22,7 @@ exports.ExposeStore = (moduleRaidStr) => { window.Store.MediaObject = window.mR.findModule('getOrCreateMediaObject')[0]; window.Store.MediaUpload = window.mR.findModule('uploadMedia')[0]; window.Store.NumberInfo = window.mR.findModule('formattedPhoneNumber')[0]; - window.Store.Cmd = window.mR.findModule('Cmd')[0].default; + window.Store.Cmd = window.mR.findModule('Cmd')[0].Cmd; window.Store.MediaTypes = window.mR.findModule('msgToMediaType')[0]; window.Store.VCard = window.mR.findModule('vcardFromContactModel')[0]; window.Store.UserConstructor = window.mR.findModule((module) => (module.default && module.default.prototype && module.default.prototype.isServer && module.default.prototype.isUser) ? module.default : null)[0].default; @@ -33,7 +33,7 @@ exports.ExposeStore = (moduleRaidStr) => { window.Store.Sticker = window.mR.findModule('Sticker')[0].default.Sticker; window.Store.UploadUtils = window.mR.findModule((module) => (module.default && module.default.encryptAndUpload) ? module.default : null)[0].default; window.Store.Label = window.mR.findModule('LabelCollection')[0].default; - window.Store.Features = window.mR.findModule('FEATURE_CHANGE_EVENT')[0].default; + window.Store.Features = window.mR.findModule('FEATURE_CHANGE_EVENT')[0].GK; window.Store.QueryOrder = window.mR.findModule('queryOrder')[0]; window.Store.QueryProduct = window.mR.findModule('queryProduct')[0]; window.Store.DownloadManager = window.mR.findModule('downloadManager')[0].downloadManager; diff --git a/src/util/InterfaceController.js b/src/util/InterfaceController.js index 3309daa..8a878f8 100644 --- a/src/util/InterfaceController.js +++ b/src/util/InterfaceController.js @@ -28,7 +28,7 @@ class InterfaceController { async openChatDrawer(chatId) { await this.pupPage.evaluate(async chatId => { let chat = await window.Store.Chat.get(chatId); - await window.Store.Cmd.chatInfoDrawer(chat); + await window.Store.Cmd.openDrawerMid(chat); }, chatId); }