pedroslopez / whatsapp-web.js

A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
https://wwebjs.dev
Apache License 2.0
15.17k stars 3.62k forks source link

Error opening chat window - window.Store.Cmd.openChatAt("") #3287

Closed arshhdahiya closed 3 days ago

arshhdahiya commented 4 days ago

Is there an existing issue for this?

Describe the bug

getting the following error while trying to open any chat

Uncaught TypeError: Cannot read properties of undefined (reading 'msgs')
    at f.openChatBottom (YJmClXJHQ5E.js?_nc_x=Ij3Wp8lg5Kz:1440:10176)
    at f.openChatAt (YJmClXJHQ5E.js?_nc_x=Ij3Wp8lg5Kz:1440:7819)
    at <anonymous>:1:32

How can I fix it? PS: This was working till yesterday

Expected behavior

Expected behavior - Chat window should have been opened

Steps to Reproduce the Bug or Issue

Create a whatsapp web client and call

client.interface.openChatWindow("your-contact@c.us")

Relevant Code

No response

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

OS: Windows Whatsapp web version - 2.3000.1016746436

Additional context

No response

harsh-im commented 4 days ago

any updates? I am facing the same issue

BenyFilho commented 4 days ago

Change the file /util/InterfaceController line 20 from window.Store.Cmd.openChatAt(chat), to window.Store.Cmd.openChatBottom(chat)

arshhdahiya commented 4 days ago

Thank you for the solution ..