fix: star() & unstar() functions (#547)

This commit is contained in:
Antoine Schaller
2021-02-16 03:24:07 +01:00
committed by GitHub
parent 56171f957e
commit 2702757dce

View File

@@ -291,7 +291,7 @@ class Message extends Base {
* Stars this message * Stars this message
*/ */
async star() { async star() {
await this.pupPage.evaluate((msgId) => { await this.client.pupPage.evaluate((msgId) => {
let msg = window.Store.Msg.get(msgId); let msg = window.Store.Msg.get(msgId);
if (msg.canStar()) { if (msg.canStar()) {
@@ -304,7 +304,7 @@ class Message extends Base {
* Unstars this message * Unstars this message
*/ */
async unstar() { async unstar() {
await this.pupPage.evaluate((msgId) => { await this.client.pupPage.evaluate((msgId) => {
let msg = window.Store.Msg.get(msgId); let msg = window.Store.Msg.get(msgId);
if (msg.canStar()) { if (msg.canStar()) {