fix: openChatWindow (#3293)
* correção função openChatWindow Alterando o "chat" para "chatId" * fix: use defined variable The bug found here: https://github.com/pedroslopez/whatsapp-web.js/pull/3291#discussion_r1776061417 Co-authored-by: StiflerPasha <40593009+StiflerPasha@users.noreply.github.com> --------- Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com> Co-authored-by: StiflerPasha <40593009+StiflerPasha@users.noreply.github.com>
This commit is contained in:
parent
bf4aed232d
commit
4aef1ffea1
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ class InterfaceController {
|
||||||
async openChatWindow(chatId) {
|
async openChatWindow(chatId) {
|
||||||
await this.pupPage.evaluate(async chatId => {
|
await this.pupPage.evaluate(async chatId => {
|
||||||
const chatWid = window.Store.WidFactory.createWid(chatId);
|
const chatWid = window.Store.WidFactory.createWid(chatId);
|
||||||
const chat = window.Store.Chat.get(chat) || await window.Store.Chat.find(chatWid);
|
const chat = window.Store.Chat.get(chatWid) || await window.Store.Chat.find(chatWid);
|
||||||
await window.Store.Cmd.openChatBottom(chat);
|
await window.Store.Cmd.openChatBottom(chat);
|
||||||
}, chatId);
|
}, chatId);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue