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:
Lavyk Soares Nunes 2024-09-26 00:35:32 -03:00 • committed by GitHub
commit 4aef1ffea1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,7 +16,7 @@ class InterfaceController {
async openChatWindow(chatId) {
await this.pupPage.evaluate(async 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);
}, chatId);
}