From 56343497e9e5b737975afcbe25f1b9f2a1b412d2 Mon Sep 17 00:00:00 2001 From: Ruvian S <12111730+matricce@users.noreply.github.com> Date: Tue, 9 Aug 2022 12:25:53 -0300 Subject: [PATCH] fix: `star` Error: Evaluation failed: TypeError: msg.chat.sendStarMsgs is not a function (#1598) Co-authored-by: Rajeh Taher --- docs/structures_Message.js.html | 4 ++-- src/structures/Message.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/structures_Message.js.html b/docs/structures_Message.js.html index 125c4f3..d937dd5 100644 --- a/docs/structures_Message.js.html +++ b/docs/structures_Message.js.html @@ -480,7 +480,7 @@ class Message extends Base { let msg = window.Store.Msg.get(msgId); if (msg.canStar()) { - return msg.chat.sendStarMsgs([msg], true); + return window.Store.Cmd.sendStarMsgs(msg.chat, [msg], false); } }, this.id._serialized); } @@ -493,7 +493,7 @@ class Message extends Base { let msg = window.Store.Msg.get(msgId); if (msg.canStar()) { - return msg.chat.sendStarMsgs([msg], false); + return window.Store.Cmd.sendUnstarMsgs(msg.chat, [msg], false); } }, this.id._serialized); } diff --git a/src/structures/Message.js b/src/structures/Message.js index 77a8e89..f66af99 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -449,7 +449,7 @@ class Message extends Base { let msg = window.Store.Msg.get(msgId); if (msg.canStar()) { - return msg.chat.sendStarMsgs([msg], true); + return window.Store.Cmd.sendStarMsgs(msg.chat, [msg], false); } }, this.id._serialized); } @@ -462,7 +462,7 @@ class Message extends Base { let msg = window.Store.Msg.get(msgId); if (msg.canStar()) { - return msg.chat.sendStarMsgs([msg], false); + return window.Store.Cmd.sendUnstarMsgs(msg.chat, [msg], false); } }, this.id._serialized); }