fix: star Error: Evaluation failed: TypeError: msg.chat.sendStarMsgs is not a function (#1598)

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
This commit is contained in:
Ruvian S
2022-08-09 12:25:53 -03:00
committed by GitHub
parent 6a4fca0a77
commit 56343497e9
2 changed files with 4 additions and 4 deletions

View File

@@ -480,7 +480,7 @@ class Message extends Base {
let msg &#x3D; 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 &#x3D; 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);
}