From dc91562f3cadfe68adcf4622853fa8d44b3e9ce1 Mon Sep 17 00:00:00 2001 From: "Pedro S. Lopez" Date: Sat, 26 Nov 2022 05:12:54 -0400 Subject: [PATCH] fix: star/unstar messages (#1843) --- src/structures/Message.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/Message.js b/src/structures/Message.js index 9af132c..ee79c20 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -453,7 +453,7 @@ class Message extends Base { await this.client.pupPage.evaluate((msgId) => { let msg = window.Store.Msg.get(msgId); - if (msg.canStar()) { + if (window.Store.MsgActionChecks.canStarMsg(msg)) { return window.Store.Cmd.sendStarMsgs(msg.chat, [msg], false); } }, this.id._serialized); @@ -466,7 +466,7 @@ class Message extends Base { await this.client.pupPage.evaluate((msgId) => { let msg = window.Store.Msg.get(msgId); - if (msg.canStar()) { + if (window.Store.MsgActionChecks.canStarMsg(msg)) { return window.Store.Cmd.sendUnstarMsgs(msg.chat, [msg], false); } }, this.id._serialized);