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

This commit is contained in:
Antoine Schaller 2021-02-16 03:24:07 +01:00 • committed by GitHub
commit 2702757dce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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