mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-17 19:26:20 +00:00
Fix mute chat (#1982)
* fix function set mute chat * chat mute new object
This commit is contained in:
@@ -937,7 +937,7 @@ class Client extends EventEmitter {
|
||||
unmuteDate = unmuteDate ? unmuteDate.getTime() / 1000 : -1;
|
||||
await this.pupPage.evaluate(async (chatId, timestamp) => {
|
||||
let chat = await window.Store.Chat.get(chatId);
|
||||
await chat.mute.mute(timestamp, !0);
|
||||
await chat.mute.mute({expiration: timestamp, sendDevice:!0});
|
||||
}, chatId, unmuteDate || -1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user