diff --git a/src/structures/Message.js b/src/structures/Message.js index e8260dd..25f418a 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -305,8 +305,9 @@ class Message extends Base { if (!this.hasQuotedMsg) return undefined; const quotedMsg = await this.client.pupPage.evaluate((msgId) => { - let msg = window.Store.Msg.get(msgId); - return msg.quotedMsgObj().serialize(); + const msg = window.Store.Msg.get(msgId); + const quotedMsg = window.Store.QuotedMsg.getQuotedMsgObj(msg); + return window.WWebJS.getMessageModel(quotedMsg); }, this.id._serialized); return new Message(this.client, quotedMsg); diff --git a/src/util/Injected.js b/src/util/Injected.js index ed0f5dc..bd9316c 100644 --- a/src/util/Injected.js +++ b/src/util/Injected.js @@ -51,6 +51,7 @@ exports.ExposeStore = (moduleRaidStr) => { window.Store.createOrUpdateReactionsModule = window.mR.findModule('createOrUpdateReactions')[0]; window.Store.EphemeralFields = window.mR.findModule('getEphemeralFields')[0]; window.Store.ReplyUtils = window.mR.findModule('canReplyMsg').length > 0 && window.mR.findModule('canReplyMsg')[0]; + window.Store.QuotedMsg = window.mR.findModule('getQuotedMsgObj')[0]; window.Store.StickerTools = { ...window.mR.findModule('toWebpSticker')[0], ...window.mR.findModule('addWebpMetadata')[0]